X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=11cb5fb1961bfca5903cfca8b2a765dfed9dafa1;hp=f24a10b3bdc32017384847d5485960c3623e69c3;hb=a69aad2242a5be4ee21955d6132247b4781d410e;hpb=495ecb70b2b097e7d4a1ffe46d44562210cdc051 diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index f24a10b..11cb5fb 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -87,7 +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)' ); + equals( "#2", $('#anchor2').attr('href'), 'Check for non-absolute href (an anchor)' ); stop(); $.get("data/dashboard.xml", function(xml) { ok( $("locations", xml).attr("class") == "foo", "Check class attribute in XML document" );