X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=inline;f=test%2Funit%2Fselector.js;h=d4830a8cf7bc786fb527e75cd35916eeed52d24d;hb=31293063fa0477a0fc31526c6f57a2ed0c343c07;hp=3c0c6761da801d014e2f9d2df54736ffdd3271a2;hpb=e2ef3df86d5f54274bf2b779d882c30aa0886bfe;p=jquery.git diff --git a/test/unit/selector.js b/test/unit/selector.js index 3c0c676..d4830a8 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -2,8 +2,8 @@ module("selector"); test("element", function() { expect(9); - ok( $("*").size() >= 30, "Select all" ); - var all = $("*"), good = true; + ok( jQuery("*").size() >= 30, "Select all" ); + var all = jQuery("*"), good = true; for ( var i = 0; i < all.length; i++ ) if ( all[i].nodeType == 8 ) good = false; @@ -12,18 +12,18 @@ 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( jQuery("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' ); + ok( jQuery("#length").length, '<input name="length"> cannot be found under IE, see #945' ); + ok( jQuery("#lengthtest input").length, '<input name="length"> cannot be found under IE, see #945' ); }); if ( location.protocol != "file:" ) { test("Element Selector with underscore", function() { expect(1); stop(); - $.get("data/with_fries.xml", function(xml) { - ok( $("foo_bar", xml).length == 1, "Element Selector with underscore" ); + jQuery.get("data/with_fries.xml", function(xml) { + equals( jQuery("foo_bar", xml).length, 1, "Element Selector with underscore" ); start(); }); }); @@ -66,14 +66,14 @@ test("id", function() { t( "All Children of ID", "#foo > *", ["sndp", "en", "sap"] ); t( "All Children of ID with no children", "#firstUL/*", [] ); - $('tName1 AtName2 A