diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-01-31 21:25:58 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-01-31 21:25:58 +0000 |
commit | 4e256bffa320f1fe87f6e4daf17bbb4ed29ae88a (patch) | |
tree | 7f2df3e8bfaaa34757cf0261db0b2cdf89f454c7 /src | |
parent | c60d4519bc25003dcde81d4967ab8060b3184a0b (diff) | |
download | jquery-4e256bffa320f1fe87f6e4daf17bbb4ed29ae88a.tar.gz jquery-4e256bffa320f1fe87f6e4daf17bbb4ed29ae88a.zip |
Added test for #891
Diffstat (limited to 'src')
-rw-r--r-- | src/selector/selectorTest.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js index 03e72f2cf..4d25c6076 100644 --- a/src/selector/selectorTest.js +++ b/src/selector/selectorTest.js @@ -127,7 +127,7 @@ test("expressions - pseudo (:) selctors", function() { });
test("expressions - basic xpath", function() {
- expect(14);
+ expect(15);
ok( jQuery.find("//*").length >= 30, "All Elements (//*)" );
t( "All Div Elements", "//div", ["main","foo"] );
t( "Absolute Path", "/html/body", ["body"] );
@@ -142,4 +142,8 @@ test("expressions - basic xpath", function() { t( "Sibling Axis", "//p/../", ["firstp","ap","foo","first","firstUL","empty","form","floatTest","sndp","en","sap"] );
t( "Sibling Axis", "//p/../*", ["firstp","ap","foo","first","firstUL","empty","form","floatTest","sndp","en","sap"] );
t( "Has Children", "//p[a]", ["firstp","ap","en","sap"] );
+
+ $("#foo").each(function() {
+ isSet( $("/p", this).get(), q("sndp", "en", "sap"), "Check XPath context" );
+ });
});
\ No newline at end of file |