aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-05-29 18:32:59 +0200
committerGitHub <noreply@github.com>2024-05-29 18:32:59 +0200
commitf2d9fde5f34c83a098fa2074ed808311086d9d23 (patch)
tree8645e1a22267ca756c27e80630512456235ad076
parentfa73e2f1b25304c93006dd45b6cba24f663e2ae7 (diff)
downloadjquery-f2d9fde5f34c83a098fa2074ed808311086d9d23.tar.gz
jquery-f2d9fde5f34c83a098fa2074ed808311086d9d23.zip
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
-rw-r--r--test/unit/selector.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js
index 419120e7d..a414bfe3a 100644
--- a/test/unit/selector.js
+++ b/test/unit/selector.js
@@ -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" ] );
} );