diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-02-06 11:55:44 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-02-06 11:55:44 +0000 |
commit | a69aad2242a5be4ee21955d6132247b4781d410e (patch) | |
tree | 0e37ca8157db6258d61d674674fe87810cc4de64 /src | |
parent | 495ecb70b2b097e7d4a1ffe46d44562210cdc051 (diff) | |
download | jquery-a69aad2242a5be4ee21955d6132247b4781d410e.tar.gz jquery-a69aad2242a5be4ee21955d6132247b4781d410e.zip |
Added equals helper for easier debugging of failed tests, soon to be used more often, see coreTest.js attr(String) for an example
Diffstat (limited to 'src')
-rw-r--r-- | src/jquery/coreTest.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index f24a10b3b..11cb5fb19 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" );
|