Skip to content
Permalink
Browse files

Added test for #891

  • Loading branch information
jzaefferer committed Jan 31, 2007
1 parent c60d451 commit 4e256bffa320f1fe87f6e4daf17bbb4ed29ae88a
Showing with 5 additions and 1 deletion.
  1. +5 −1 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" );
});
});

0 comments on commit 4e256bf

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