From 0af582daa56632736560df0bff6c78f778618c5a Mon Sep 17 00:00:00 2001 From: Sergey Matyunin Date: Mon, 14 Sep 2026 03:16:00 +0300 Subject: [PATCH] =?UTF-8?q?test:=20=D0=B7=D0=B0=D1=89=D0=B8=D1=82=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20hover-gate=20=D0=BC=D0=B0=D1=80=D0=BA=D0=B5?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=20(#564)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: #564 User-Visible: no --- test/device-marker-polish-contract.test.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/device-marker-polish-contract.test.mjs b/test/device-marker-polish-contract.test.mjs index ae787116..db0a769f 100644 --- a/test/device-marker-polish-contract.test.mjs +++ b/test/device-marker-polish-contract.test.mjs @@ -162,6 +162,7 @@ test('issue 212 feedback is owned by actual dispatch and lasts 200 ms', () => { test('issue 212 removes the global touch latch and gates every shared hover selector', () => { const card = source('houseplan-card.ts'); + const styles = source('styles.ts'); assert.doesNotMatch(card, /private static _touchSeen/); assert.match(card, /PointerModalityController/); assert.match(card, /_clearTransientHover/); @@ -170,6 +171,11 @@ test('issue 212 removes the global touch latch and gates every shared hover sele /POINTER_HOVER_TARGET_SELECTOR\s*=\s*'[^']*hp-device-preview[^']*'/, 'device preview must receive the card-owned pointer hover gate', ); + assert.match( + styles, + /:host\(\[data-pointer-hover\]\)\s+\.dev:not\(\.unavail\)\[data-hp-device-hover\]\s*\{/, + 'semantic device hover paint must remain gated by the current pointer modality', + ); for (const name of [ 'styles.ts',