aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-04-28 15:45:38 +0000
committerJohn Resig <jeresig@gmail.com>2007-04-28 15:45:38 +0000
commite95a6cc746f9217fa285a87c2e9c0705babf2824 (patch)
tree101ba9700e5eb881567f9dad77c76e26e0c07c57 /src
parent09a2e48f45ca106c937d2fbee9e7586ab514dbe7 (diff)
downloadjquery-e95a6cc746f9217fa285a87c2e9c0705babf2824.tar.gz
jquery-e95a6cc746f9217fa285a87c2e9c0705babf2824.zip
Forgot to remove the test cases for XPath [n]. (Ticket #995)
Diffstat (limited to 'src')
-rw-r--r--src/selector/selectorTest.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js
index 07e4d50f0..939edbe0d 100644
--- a/src/selector/selectorTest.js
+++ b/src/selector/selectorTest.js
@@ -90,7 +90,7 @@ test("multiple", function() {
});
test("child and adjacent", function() {
- expect(22);
+ expect(18);
t( "Child", "p > a", ["simon1","google","groups","mark","yahoo","simon"] );
t( "Child", "p> a", ["simon1","google","groups","mark","yahoo","simon"] );
t( "Child", "p >a", ["simon1","google","groups","mark","yahoo","simon"] );
@@ -107,15 +107,11 @@ test("child and adjacent", function() {
t( "First Child", "p:first-child", ["firstp","sndp"] );
t( "Nth Child", "p:nth-child(1)", ["firstp","sndp"] );
- t( "First Child, XPath", "p[1]", ["firstp","sndp"] );
t( "Last Child", "p:last-child", ["sap"] );
- t( "Last Child, XPath", "p[3]", ["sap"] );
t( "Nth-child", "#main form > *:nth-child(2)", ["text2"] );
- t( "Nth-child, XPath", "#main form > *[2]", ["text2"] );
t( "Nth-child", "#main form > :nth-child(2)", ["text2"] );
- t( "Nth-child, XPath", "#main form > [2]", ["text2"] );
});
test("attributes", function() {