Added equals helper for easier debugging of failed tests, soon to be used more often...
[jquery.git] / src / jquery / coreTest.js
index f24a10b..11cb5fb 100644 (file)
@@ -87,7 +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
+       equals( "#2", $('#anchor2').attr('href'), 'Check for non-absolute href (an anchor)' );\r
        stop();\r
        $.get("data/dashboard.xml", function(xml) {\r
                ok( $("locations", xml).attr("class") == "foo", "Check class attribute in XML document" );\r