X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=183bacb6b80d2023604da0cd08dc8127deec5b53;hb=b1e161466cb7f68bc7447ffd580395764715d9ca;hp=b3f198a06e1de91127c1c6180d745f31fb0129f3;hpb=989667c9fd504e84281a0a30535406d471d4a7b6;p=jquery.git diff --git a/test/unit/selector.js b/test/unit/selector.js index b3f198a..183bacb 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -33,13 +33,13 @@ test("broken", function() { expect(7); function broken(name, selector) { try { - t( name, selector, [] ); + jQuery(selector); } catch(e){ ok( typeof e === "string" && e.indexOf("Syntax error") >= 0, name + ": " + selector ); } } - + broken( "Broken Selector", "[", [] ); broken( "Broken Selector", "(", [] ); broken( "Broken Selector", "{", [] ); @@ -235,7 +235,7 @@ test("pseudo (:) selectors", function() { t( "Selected Option Element", "#form option:selected", ["option1a","option2d","option3b","option3c"] ); t( "Text Contains", "a:contains('Google')", ["google","groups"] ); t( "Text Contains", "a:contains('Google Groups')", ["groups"] ); - t( "Element Preceded By", "p ~ div", ["foo","fx-queue","fx-tests", "moretests"] ); + t( "Element Preceded By", "p ~ div", ["foo","fx-queue","fx-tests", "moretests","tabindex-tests"] ); t( "Not", "a.blog:not(.link)", ["mark"] ); t( "Not - multiple", "#form option:not(:contains('Nothing'),#option1b,:selected)", ["option1c", "option1d", "option2b", "option2c", "option3d", "option3e"] ); //t( "Not - complex", "#form option:not([id^='opt']:nth-child(-n+3))", [ "option1a", "option1d", "option2d", "option3d", "option3e"] );