X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=07c4434d093717c6abc1f1373bd86b5eaab9b69d;hb=37394598cb96ed17319b7f5f7e8e70ac0ee6633d;hp=2c80d796c83b7004ddf771459dc2c44bae880906;hpb=084079d2fd1c7ed3582612cc32b01346b43fb415;p=jquery.git diff --git a/test/unit/selector.js b/test/unit/selector.js index 2c80d79..07c4434 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -12,7 +12,7 @@ test("element", function() { t( "Element Selector", "body", ["body"] ); t( "Element Selector", "html", ["html"] ); t( "Parent Element", "div p", ["firstp","ap","sndp","en","sap","first"] ); - ok( $("param", "#object1").length == 2, "Object/param as context" ); + equals( $("param", "#object1").length, 2, "Object/param as context" ); ok( $("#length").length, '<input name="length"> cannot be found under IE, see #945' ); ok( $("#lengthtest input").length, '<input name="length"> cannot be found under IE, see #945' ); @@ -23,7 +23,7 @@ if ( location.protocol != "file:" ) { expect(1); stop(); $.get("data/with_fries.xml", function(xml) { - ok( $("foo_bar", xml).length == 1, "Element Selector with underscore" ); + equals( $("foo_bar", xml).length, 1, "Element Selector with underscore" ); start(); }); }); @@ -59,16 +59,16 @@ test("id", function() { t( "Child escaped ID", "form > #foo\\:bar", ["foo:bar"] ); t( "Child escaped ID", "form > #test\\.foo\\[5\\]bar", ["test.foo[5]bar"] ); - t( "ID Selector, child ID present", "#form > #radio1", ["radio1"] ); // bug #267 - t( "ID Selector, not an ancestor ID", "#form #first", [] ); + t( "ID Selector, child ID present", "#form > #radio1", ["radio1"] ); // bug #267 + t( "ID Selector, not an ancestor ID", "#form #first", [] ); t( "ID Selector, not a child ID", "#form > #option1a", [] ); t( "All Children of ID", "#foo > *", ["sndp", "en", "sap"] ); t( "All Children of ID with no children", "#firstUL/*", [] ); $('tName1 AtName2 A