mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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:
parent
fa73e2f1b2
commit
f2d9fde5f3
@ -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" ] );
|
||||
} );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user