Added test for #745
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 31 Jan 2007 21:56:32 +0000 (21:56 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 31 Jan 2007 21:56:32 +0000 (21:56 +0000)
build/test/index.html
src/jquery/coreTest.js

index ffeb9f9..1a00fd7 100644 (file)
@@ -30,7 +30,7 @@
                <div id="foo">
                        <p id="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
                        <p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a></p>
-                       <p id="sap">This link has <code><a href="http://smin/#2" id="anchor2">class="blog"</a></code>: <a href="http://simon.incutio.com/" class="blog link" id="simon">Simon Willison's Weblog</a></p>
+                       <p id="sap">This link has <code><a href="#2" id="anchor2">class="blog"</a></code>: <a href="http://simon.incutio.com/" class="blog link" id="simon">Simon Willison's Weblog</a></p>
 
                </div>
                <p id="first">Try them out:</p>
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