Commit c60d4519 authored by Jörn Zaefferer's avatar Jörn Zaefferer

Added test for #895

parent 1e07c1a3
...@@ -11,10 +11,12 @@ test("expressions - element", function() { ...@@ -11,10 +11,12 @@ test("expressions - element", function() {
}); });
test("expressions - id", function() { test("expressions - id", function() {
expect(8); expect(10);
t( "ID Selector", "#body", ["body"] ); t( "ID Selector", "#body", ["body"] );
t( "ID Selector w/ Element", "body#body", ["body"] ); t( "ID Selector w/ Element", "body#body", ["body"] );
t( "ID Selector w/ Element", "ul#first", [] ); 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, child ID present", "#form > #radio1", ["radio1"] ); // bug #267
t( "ID Selector, not an ancestor ID", "#form #first", [] ); t( "ID Selector, not an ancestor ID", "#form #first", [] );
...@@ -22,6 +24,7 @@ test("expressions - id", function() { ...@@ -22,6 +24,7 @@ test("expressions - id", function() {
t( "All Children of ID", "#foo/*", ["sndp", "en", "sap"] ); t( "All Children of ID", "#foo/*", ["sndp", "en", "sap"] );
t( "All Children of ID with no children", "#firstUL/*", [] ); t( "All Children of ID with no children", "#firstUL/*", [] );
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment