@@ -296,7 +296,7 @@ test("attributes", function() {
296
296
} ) ;
297
297
298
298
test ( "pseudo (:) selectors" , function ( ) {
299
- expect ( 53 ) ;
299
+ expect ( 67 ) ;
300
300
t ( "First Child" , "p:first-child" , [ "firstp" , "sndp" ] ) ;
301
301
t ( "Last Child" , "p:last-child" , [ "sap" ] ) ;
302
302
t ( "Only Child" , "a:only-child" , [ "simon1" , "anchor1" , "yahoo" , "anchor2" , "liveLink1" , "liveLink2" ] ) ;
@@ -316,6 +316,22 @@ test("pseudo (:) selectors", function() {
316
316
t ( "Not - multiple" , "#form option:not(:contains('Nothing'),#option1b,:selected)" , [ "option1c" , "option1d" , "option2b" , "option2c" , "option3d" , "option3e" ] ) ;
317
317
//t( "Not - complex", "#form option:not([id^='opt']:nth-child(-n+3))", [ "option1a", "option1d", "option2d", "option3d", "option3e"] );
318
318
t ( "Not - recursive" , "#form option:not(:not(:selected))[id^='option3']" , [ "option3b" , "option3c" ] ) ;
319
+
320
+ t ( ":not() failing interior" , "p:not(.foo)" , [ "firstp" , "ap" , "sndp" , "en" , "sap" , "first" ] ) ;
321
+ t ( ":not() failing interior" , "p:not(div.foo)" , [ "firstp" , "ap" , "sndp" , "en" , "sap" , "first" ] ) ;
322
+ t ( ":not() failing interior" , "p:not(p.foo)" , [ "firstp" , "ap" , "sndp" , "en" , "sap" , "first" ] ) ;
323
+ t ( ":not() failing interior" , "p:not(#blargh)" , [ "firstp" , "ap" , "sndp" , "en" , "sap" , "first" ] ) ;
324
+ t ( ":not() failing interior" , "p:not(div#blargh)" , [ "firstp" , "ap" , "sndp" , "en" , "sap" , "first" ] ) ;
325
+ t ( ":not() failing interior" , "p:not(p#blargh)" , [ "firstp" , "ap" , "sndp" , "en" , "sap" , "first" ] ) ;
326
+
327
+ t ( ":not Multiple" , "p:not(a)" , [ "firstp" , "ap" , "sndp" , "en" , "sap" , "first" ] ) ;
328
+ t ( ":not Multiple" , "p:not(a, b)" , [ "firstp" , "ap" , "sndp" , "en" , "sap" , "first" ] ) ;
329
+ t ( ":not Multiple" , "p:not(a, b, div)" , [ "firstp" , "ap" , "sndp" , "en" , "sap" , "first" ] ) ;
330
+ t ( ":not Multiple" , "p:not(p)" , [ ] ) ;
331
+ t ( ":not Multiple" , "p:not(a,p)" , [ ] ) ;
332
+ t ( ":not Multiple" , "p:not(p,a)" , [ ] ) ;
333
+ t ( ":not Multiple" , "p:not(a,p,b)" , [ ] ) ;
334
+ t ( ":not Multiple" , ":input:not(:image,:input,:submit)" , [ ] ) ;
319
335
320
336
t ( "nth Element" , "p:nth(1)" , [ "ap" ] ) ;
321
337
t ( "First Element" , "p:first" , [ "firstp" ] ) ;
0 commit comments