Changeset 284774 in webkit
- Timestamp:
- Oct 25, 2021, 1:58:38 AM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
imported/w3c/ChangeLog (modified) (1 diff)
-
imported/w3c/web-platform-tests/css/selectors/focus-visible-009.html (modified) (2 diffs)
-
platform/mac-wk1/TestExpectations (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r284773 r284774 1 2021-10-25 Tim Nguyen <ntim@apple.com> 2 3 Fix imported/w3c/web-platform-tests/css/selectors/focus-visible-009.html flaky failure on macOS wk1 4 https://bugs.webkit.org/show_bug.cgi?id=231647 5 6 Reviewed by Antti Koivisto. 7 8 This only tests a CSS selector feature, use `waitUntilStableAutofocusState()` helper which is more stable on wk1 9 to make this test pass. 10 11 * platform/mac-wk1/TestExpectations: 12 1 13 2021-10-25 Ziran Sun <zsun@igalia.com> 2 14 -
trunk/LayoutTests/imported/w3c/ChangeLog
r284761 r284774 1 2021-10-25 Tim Nguyen <ntim@apple.com> 2 3 Fix imported/w3c/web-platform-tests/css/selectors/focus-visible-009.html flaky failure on macOS wk1 4 https://bugs.webkit.org/show_bug.cgi?id=231647 5 6 Reviewed by Antti Koivisto. 7 8 This only tests a CSS selector feature, use `waitUntilStableAutofocusState()` helper which is more stable on wk1 9 to make this test pass. 10 11 * web-platform-tests/css/selectors/focus-visible-009.html: 12 1 13 2021-10-24 Alexey Shvayka <shvaikalesh@gmail.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/selectors/focus-visible-009.html
r276127 r284774 8 8 <script src="/resources/testharness.js"></script> 9 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/html/interaction/focus/the-autofocus-attribute/resources/utils.js"></script> 10 11 <style> 11 12 @supports not selector(:focus-visible) { … … 34 35 <button id="button" autofocus tabindex="-1">I will be focused automatically.</button> 35 36 <script> 36 async_test(function(t) { 37 button.addEventListener("focus", t.step_func(function() { 38 assert_equals(getComputedStyle(button).outlineColor, "rgb(0, 128, 0)", `outlineColor for ${button.tagName}#${button.id} should be green`); 39 assert_not_equals(getComputedStyle(button).backgroundColor, "rgb(255, 0, 0)", `backgroundColor for ${button.tagName}#${button.id} should NOT be red`); 40 t.done(); 41 })); 42 43 // Handle the case where the button is focused before the test runs. 44 if (document.activeElement === button) { 45 assert_equals(getComputedStyle(button).outlineColor, "rgb(0, 128, 0)", `outlineColor for ${button.tagName}#${button.id} should be green`); 46 assert_not_equals(getComputedStyle(button).backgroundColor, "rgb(255, 0, 0)", `backgroundColor for ${button.tagName}#${button.id} should NOT be red`); 47 t.done(); 48 } 49 37 promise_test(async function() { 38 await waitUntilStableAutofocusState(); 39 assert_equals(document.activeElement, button, "Should have correct focused element"); 40 assert_equals(getComputedStyle(button).outlineColor, "rgb(0, 128, 0)", `outlineColor for ${button.tagName}#${button.id} should be green`); 41 assert_not_equals(getComputedStyle(button).backgroundColor, "rgb(255, 0, 0)", `backgroundColor for ${button.tagName}#${button.id} should NOT be red`); 50 42 }, "Autofocus should match :focus-visible"); 51 43 </script> -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r284727 r284774 691 691 webkit.org/b/172807 imported/w3c/web-platform-tests/css/selectors/focus-within-display-none-001.html [ Pass Failure ] 692 692 693 webkit.org/b/231647 imported/w3c/web-platform-tests/css/selectors/focus-visible-009.html [ Pass Failure ]694 695 693 webkit.org/b/168409 media/modern-media-controls/airplay-button/airplay-button.html [ Pass Timeout ] 696 694 webkit.org/b/168265 media/modern-media-controls/forward-button/forward-button.html [ Pass Timeout ]
Note:
See TracChangeset
for help on using the changeset viewer.