Skip to content
Permalink
Browse files

Added test for #745

  • Loading branch information
jzaefferer committed Jan 31, 2007
1 parent d4849a0 commit de4e28e1ba8cad85818b298009dca8098005c673
Showing with 3 additions and 2 deletions.
  1. +1 −1 build/test/index.html
  2. +2 −1 src/jquery/coreTest.js
@@ -30,7 +30,7 @@ <h2 id="userAgent"></h2>
<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>
@@ -74,7 +74,7 @@ test("index(Object)", function() {
});

test("attr(String)", function() {
expect(12);
expect(13);
ok( $('#text1').attr('value') == "Test", 'Check for value attribute' );
ok( $('#text1').attr('type') == "text", 'Check for type attribute' );
ok( $('#radio1').attr('type') == "radio", 'Check for type attribute' );
@@ -87,6 +87,7 @@ test("attr(String)", function() {
ok( $('#name').attr('name') == "name", 'Check for name attribute' );
ok( $('#text1').attr('name') == "action", 'Check for name attribute' );
ok( $('#form').attr('action').indexOf("formaction") >= 0, 'Check for action attribute' );
ok( $('#anchor2').attr('href') == "#2", 'Check for non-absolute href (an anchor)' );
});

test("attr(String, Function)", function() {

0 comments on commit de4e28e

Please sign in to comment.
You can’t perform that action at this time.