Added test for #745
[jquery.git] / src / jquery / coreTest.js
index 6b73b0c..a753315 100644 (file)
@@ -74,7 +74,7 @@ test("index(Object)", function() {
 });\r
 \r
 test("attr(String)", function() {\r
-       expect(12);\r
+       expect(13);\r
        ok( $('#text1').attr('value') == "Test", 'Check for value attribute' );\r
        ok( $('#text1').attr('type') == "text", 'Check for type attribute' );\r
        ok( $('#radio1').attr('type') == "radio", 'Check for type attribute' );\r
@@ -87,6 +87,7 @@ test("attr(String)", function() {
        ok( $('#name').attr('name') == "name", 'Check for name attribute' );\r
        ok( $('#text1').attr('name') == "action", 'Check for name attribute' );\r
        ok( $('#form').attr('action').indexOf("formaction") >= 0, 'Check for action attribute' );\r
+       ok( $('#anchor2').attr('href') == "#2", 'Check for non-absolute href (an anchor)' );\r
 });\r
 \r
 test("attr(String, Function)", function() {\r