Changeset 271407 in webkit
- Timestamp:
- Jan 12, 2021 10:57:33 AM (3 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r271403 r271407 1 2021-01-12 Peng Liu <peng.liu6@apple.com> 2 3 REGRESSION (r271341): media/modern-media-controls/media-controller/media-controller-inline-to-fullscreen-to-inline.html is timing out 4 https://bugs.webkit.org/show_bug.cgi?id=220530 5 6 Reviewed by Eric Carlson. 7 8 Similar to r271377, this patch fixes a layout test failure/timeout by enabling "MockVideoPresentationMode" 9 and sending a request to enter/exit fullscreen after the current mode change is completed. 10 11 * media/modern-media-controls/media-controller/media-controller-inline-to-fullscreen-to-inline-expected.txt: 12 * media/modern-media-controls/media-controller/media-controller-inline-to-fullscreen-to-inline.html: 13 * platform/mac/TestExpectations: 14 1 15 2021-01-12 Martin Robinson <mrobinson@igalia.com> 2 16 -
trunk/LayoutTests/media/modern-media-controls/media-controller/media-controller-inline-to-fullscreen-to-inline-expected.txt
r209592 r271407 8 8 PASS shadowRoot.querySelector('.media-controls').classList.contains('inline') is true 9 9 10 PASS internals.isChangingPresentationMode(media) became false 10 11 Media entered fullscreen. 11 12 PASS shadowRoot.querySelector('.media-controls').classList.contains('fullscreen') is true … … 13 14 We exit fullscreen by clicking on the matching button. 14 15 16 PASS internals.isChangingPresentationMode(media) became false 15 17 Media exited fullscreen. 16 18 PASS shadowRoot.querySelector('.media-controls').classList.contains('inline') is true -
trunk/LayoutTests/media/modern-media-controls/media-controller/media-controller-inline-to-fullscreen-to-inline.html
r210959 r271407 10 10 description("Testing that entering fullscreen then going back into inline presents inline controls."); 11 11 12 if (window.internals) 13 internals.setMockVideoPresentationModeEnabled(true); 14 12 15 const media = document.querySelector("video"); 13 16 const shadowRoot = window.internals.shadowRoot(media); … … 19 22 20 23 media.pause(); 21 window.requestAnimationFrame(() => toggleFullscreen());24 window.requestAnimationFrame(() => clickFullscreenButton()); 22 25 }); 23 26 … … 25 28 debug(""); 26 29 30 if (window.internals) 31 shouldBecomeEqual("internals.isChangingPresentationMode(media)", "false", toggleFullscreen); 32 else 33 toggleFullscreen(); 34 }); 35 36 function toggleFullscreen() 37 { 27 38 if (media.webkitDisplayingFullscreen) { 28 39 debug("Media entered fullscreen."); … … 32 43 debug(""); 33 44 debug("We exit fullscreen by clicking on the matching button."); 34 toggleFullscreen();45 clickFullscreenButton(); 35 46 }); 36 47 } else { … … 45 56 }); 46 57 } 47 } );58 } 48 59 49 function toggleFullscreen()60 function clickFullscreenButton() 50 61 { 51 62 const element = shadowRoot.querySelector("button.fullscreen"); -
trunk/LayoutTests/platform/mac/TestExpectations
r271377 r271407 1455 1455 webkit.org/b/183490 media/modern-media-controls/controls-visibility-support/controls-visibility-support-fullscreen-on-video.html [ Failure ] 1456 1456 webkit.org/b/183490 media/modern-media-controls/media-controller/media-controller-fade-controls-when-entering-fullscreen.html [ Failure ] 1457 webkit.org/b/183490 media/modern-media-controls/media-controller/media-controller-inline-to-fullscreen-to-inline.html [ Failure ]1458 1457 webkit.org/b/183490 media/modern-media-controls/start-support/start-support-fullscreen.html [ Failure ] 1459 1458
Note: See TracChangeset
for help on using the changeset viewer.