From f2d9fde5f34c83a098fa2074ed808311086d9d23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski-Owczarek?= Date: Wed, 29 May 2024 18:32:59 +0200 Subject: [PATCH] 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 --- test/unit/selector.js | 4 ++-- 1 file 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" ] ); } ); -- 2.39.5