Skip to content

Commit

Permalink
Bug 1940119 [wpt PR 49925] - De-flake input-element-pseudo-open, a=te…
Browse files Browse the repository at this point in the history
…stonly

Automatic update from web-platform-tests
De-flake input-element-pseudo-open

test_driver.bless() calls were timing out while the picker is open, and
the color picker wasn't closing when calling input.blur(). Replacing
both of these with test_driver.click() on a button that always comes
before the pickers fixes both of these issues.

Change-Id: I01550d84c5e6111329cc660f6e797ce21f4e2b74
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6149610
Commit-Queue: Joey Arhar <jarharchromium.org>
Reviewed-by: Steinar H Gunderson <sessechromium.org>
Reviewed-by: Di Zhang <dizhanggchromium.org>
Cr-Commit-Position: refs/heads/main{#1402549}

--

wpt-commits: cdaff805df545b270353cbe68c775af2f1665ce2
wpt-pr: 49925

UltraBlame original commit: ce83594af44ef2dca584403128ef380d257714b8
  • Loading branch information
marco-c committed Jan 16, 2025
1 parent c4fee17 commit 7f10c0f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
varies across browsers and platforms. This test reflects picker support in
desktop chromium. -->

<button>reset</button>

<div class=supported>
<input type=date>
<input type=datetime-local>
Expand Down Expand Up @@ -38,8 +40,7 @@
assert_true(input.matches(':open'),
'Should match :open after opening the picker.');

await test_driver.bless();
input.blur();
await test_driver.click(document.querySelector('button'));
assert_false(input.matches(':open'),
'Should not match :open after closing the picker.');
}, `CSS :open for <input type=${inputType}>`);
Expand Down

0 comments on commit 7f10c0f

Please sign in to comment.