Skip to content

Commit 77fe8c0

Browse files
committed
Tests: Backport a selector test fix for the Karma mode
The tokenization stressor test needs to exclude `.qunit-source` or it sometimes fits into the results. This change has already landed on `main` in gh-4550. Ref gh-4550
1 parent c87bae5 commit 77fe8c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ QUnit.test( "pseudo - misc", function( assert ) {
11181118
assert.t( "Multi-pseudo", "#ap:has(*), #ap:has(*)", [ "ap" ] );
11191119
assert.t( "Multi-pseudo with leading nonexistent id", "#nonexistent:has(*), #ap:has(*)", [ "ap" ] );
11201120

1121-
assert.t( "Tokenization stressor", "a[class*=blog]:not(:has(*, :contains(!)), :contains(!)), br:contains(]), p:contains(]), :not(:empty):not(:parent)", [ "ap", "mark", "yahoo", "simon" ] );
1121+
assert.t( "Tokenization stressor", "a[class*=blog]:not(:has(*, :contains(!)), :contains(!)), br:contains(]), p:contains(]):not(.qunit-source), :not(:empty):not(:parent):not(.qunit-source)", [ "ap", "mark", "yahoo", "simon" ] );
11221122
} else {
11231123
assert.ok( "skip", ":has not supported in selector-native" );
11241124
assert.ok( "skip", ":has not supported in selector-native" );

0 commit comments

Comments
 (0)