module("selector");\r
\r
test("expressions - element", function() {\r
- expect(5);\r
+ expect(7);\r
ok( $("*").size() >= 30, "Select all" );\r
t( "Element Selector", "div", ["main","foo"] );\r
t( "Element Selector", "body", ["body"] );\r
t( "Element Selector", "html", ["html"] );\r
t( "Parent Element", "div div", ["foo"] );\r
+ t( "Object/Param element", "#object param", ["param1", "param2"] );\r
+ ok( $("param", $("#object")[0]).length == 2, "Object/param as context" );\r
});\r
\r
test("expressions - id", function() {\r
t( "All Children of ID with no children", "#firstUL/*", [] );\r
});\r
\r
+\r
test("expressions - class", function() {\r
expect(4);\r
t( "Class Selector", ".blog", ["mark","simon"] );\r