X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fselector%2FselectorTest.js;h=945455ce36f40b3baa65e7445f013cac4a40b441;hb=955fdb87a72e0d85676db932eda9f6a4319306d9;hp=617161457671a97ba9de084d3b21545d9ec24c9e;hpb=61504d516abcc7bae036056853f21601ad310826;p=jquery.git diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js index 6171614..945455c 100644 --- a/src/selector/selectorTest.js +++ b/src/selector/selectorTest.js @@ -1,12 +1,13 @@ module("selector"); test("expressions - element", function() { - expect(5); + expect(6); ok( $("*").size() >= 30, "Select all" ); t( "Element Selector", "div", ["main","foo"] ); t( "Element Selector", "body", ["body"] ); t( "Element Selector", "html", ["html"] ); t( "Parent Element", "div div", ["foo"] ); + ok( $("param", "#object1").length == 2, "Object/param as context" ); }); test("expressions - id", function() { @@ -23,6 +24,7 @@ test("expressions - id", function() { t( "All Children of ID with no children", "#firstUL/*", [] ); }); + test("expressions - class", function() { expect(4); t( "Class Selector", ".blog", ["mark","simon"] );