From c60d4519bc25003dcde81d4967ab8060b3184a0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Wed, 31 Jan 2007 21:19:35 +0000 Subject: [PATCH] Added test for #895 --- src/selector/selectorTest.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js index 945455c..03e72f2 100644 --- a/src/selector/selectorTest.js +++ b/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/*", [] ); + }); -- 1.7.10.4