Tests: Align :has selector tests with 3.x-stable

Consistently use `assert.selectInFixture` instead of prepending the selector
with `#qunit-fixture ` manually.

Closes gh-5498
Ref gh-5497
This commit is contained in:
Michał Gołębiowski-Owczarek 2024-05-29 18:32:59 +02:00 committed by GitHub
parent fa73e2f1b2
commit f2d9fde5f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -960,8 +960,8 @@ QUnit[ QUnit.jQuerySelectors ? "test" : "skip" ]( "pseudo - has", function( asse
// return no results. Make sure this is accounted for. (gh-5098)
// Note: Chrome 105 has this behavior only in 105.0.5195.125 or newer;
// initially it shipped with a fully forgiving parsing in `:has()`.
assert.t( "Nested with list arguments",
"#qunit-fixture div:has(faketag, div:has(faketag, div:not([id])))",
assert.selectInFixture( "Nested with list arguments",
"div:has(faketag, div:has(faketag, div:not([id])))",
[ "moretests", "t2037", "fx-test-group", "fx-queue" ] );
} );