Navigation Menu

Skip to content

Commit

Permalink
Added assertions for #750
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Jan 3, 2007
1 parent 865706d commit 02483b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/selector/selectorTest.js
@@ -1,12 +1,14 @@
module("selector"); module("selector");


test("expressions - element", function() { test("expressions - element", function() {
expect(5); expect(7);
ok( $("*").size() >= 30, "Select all" ); ok( $("*").size() >= 30, "Select all" );
t( "Element Selector", "div", ["main","foo"] ); t( "Element Selector", "div", ["main","foo"] );
t( "Element Selector", "body", ["body"] ); t( "Element Selector", "body", ["body"] );
t( "Element Selector", "html", ["html"] ); t( "Element Selector", "html", ["html"] );
t( "Parent Element", "div div", ["foo"] ); t( "Parent Element", "div div", ["foo"] );
t( "Object/Param element", "#object param", ["param1", "param2"] );
ok( $("param", $("#object")[0]).length == 2, "Object/param as context" );
}); });


test("expressions - id", function() { test("expressions - id", function() {
Expand All @@ -23,6 +25,7 @@ test("expressions - id", function() {
t( "All Children of ID with no children", "#firstUL/*", [] ); t( "All Children of ID with no children", "#firstUL/*", [] );
}); });



test("expressions - class", function() { test("expressions - class", function() {
expect(4); expect(4);
t( "Class Selector", ".blog", ["mark","simon"] ); t( "Class Selector", ".blog", ["mark","simon"] );
Expand Down

0 comments on commit 02483b4

Please sign in to comment.