aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector/selectorTest.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/selector/selectorTest.js')
-rw-r--r--src/selector/selectorTest.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js
index 7a4789a80..458804bbf 100644
--- a/src/selector/selectorTest.js
+++ b/src/selector/selectorTest.js
@@ -41,7 +41,7 @@ test("broken", function() {
});
test("id", function() {
- expect(24);
+ expect(25);
t( "ID Selector", "#body", ["body"] );
t( "ID Selector w/ Element", "body#body", ["body"] );
t( "ID Selector w/ Element", "ul#first", [] );
@@ -72,6 +72,8 @@ test("id", function() {
t( "ID Selector on Form with an input that has a name of 'id'", "#lengthtest", ["lengthtest"] );
t( "ID selector with non-existant ancestor", "#asdfasdf #foobar", [] ); // bug #986
+
+ isSet( $("body").find("div#form"), [], "ID selector within the context of another element" );
});
test("class", function() {