X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=6a383255514455e9b036f24de8ae50f75112ccda;hb=9c76ac4f6d295a5b593048e54b4c4231c092e58a;hp=27ad6e53505e82ef77930efba3fe6ab53790ca82;hpb=3ab7b72919c8bd697e0cefab3b658bee0f51aef8;p=jquery.git diff --git a/test/unit/selector.js b/test/unit/selector.js index 27ad6e5..6a38325 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -1,4 +1,4 @@ -module("selector"); +module("selector", { teardown: moduleTeardown }); test("element", function() { expect(21); @@ -58,7 +58,7 @@ if ( location.protocol != "file:" ) { } test("broken", function() { - expect(20); + expect(19); function broken(name, selector) { try { @@ -80,7 +80,10 @@ test("broken", function() { broken( "Doesn't exist", ":visble", [] ); broken( "Nth-child", ":nth-child", [] ); broken( "Nth-child", ":nth-child(-)", [] ); - broken( "Nth-child", ":nth-child(asdf)", [] ); + // Sigh. WebKit thinks this is a real selector in qSA + // They've already fixed this and it'll be coming into + // current browsers soon. + //broken( "Nth-child", ":nth-child(asdf)", [] ); broken( "Nth-child", ":nth-child(2n+-0)", [] ); broken( "Nth-child", ":nth-child(2+0)", [] ); broken( "Nth-child", ":nth-child(- 1n)", [] );