Skip to content
Permalink
Browse files

Added test for #895

  • Loading branch information
jzaefferer committed Jan 31, 2007
1 parent 1e07c1a commit c60d4519bc25003dcde81d4967ab8060b3184a0b
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/selector/selectorTest.js
@@ -11,17 +11,20 @@ test("expressions - element", function() {
});

test("expressions - id", function() {
expect(8);
expect(10);
t( "ID Selector", "#body", ["body"] );
t( "ID Selector w/ Element", "body#body", ["body"] );
t( "ID Selector w/ Element", "ul#first", [] );
t( "ID selector with existing ID descendant", "#firstp #simon1", ["simon1"] );
t( "ID selector with non-existing descendant", "#firstp #foobar", [] );

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/*", [] );
t( "All Children of ID", "#foo/*", ["sndp", "en", "sap"] );
t( "All Children of ID with no children", "#firstUL/*", [] );

});


0 comments on commit c60d451

Please sign in to comment.
You can’t perform that action at this time.