Changeset 213348 in webkit
- Timestamp:
- Mar 2, 2017 8:47:31 PM (7 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r213346 r213348 1 2017-03-02 Antoine Quint <graouts@apple.com> 2 3 [ios-simulator Debug WK2] LayoutTest media/modern-media-controls/fullscreen-support/fullscreen-support-enabled.html is a flaky failure 4 https://bugs.webkit.org/show_bug.cgi?id=168668 5 <rdar://problem/30823677> 6 7 Reviewed by Simon Fraser. 8 9 This test would sometime fail for the first assertion because we may need more than just metadata 10 to determine that we can be in a state where the fullscreen button becomes enabled (see the logic 11 in FullscreenSupport). So we now use an asynchronous assertion to determine we've enabled the 12 fullscreen button and then force it to error to disable it. 13 14 * media/modern-media-controls/fullscreen-support/fullscreen-support-enabled-expected.txt: 15 * media/modern-media-controls/fullscreen-support/fullscreen-support-enabled.html: 16 * platform/ios-simulator/TestExpectations: 17 1 18 2017-03-02 Antoine Quint <graouts@apple.com> 2 19 -
trunk/LayoutTests/media/modern-media-controls/fullscreen-support/fullscreen-support-enabled-expected.txt
r208274 r213348 4 4 5 5 6 PASS mediaController.controls.fullscreenButton.enabled is true 6 Once media loads and we have tracks in the video, the fullscreen button should become enabled 7 PASS mediaController.controls.fullscreenButton.enabled became true 8 9 We now set the media source to be the empty string to force an error, which should disable the fullscreen button 7 10 PASS mediaController.controls.fullscreenButton.enabled is false 8 11 -
trunk/LayoutTests/media/modern-media-controls/fullscreen-support/fullscreen-support-enabled.html
r208274 r213348 28 28 const mediaController = createControls(container, media, null); 29 29 30 media.addEventListener("loadedmetadata", () => { 31 shouldBeTrue("mediaController.controls.fullscreenButton.enabled"); 30 debug("Once media loads and we have tracks in the video, the fullscreen button should become enabled"); 31 shouldBecomeEqual("mediaController.controls.fullscreenButton.enabled", "true", () => { 32 media.addEventListener("error", () => { 33 shouldBeFalse("mediaController.controls.fullscreenButton.enabled"); 34 debug(""); 35 container.remove(); 36 media.remove(); 37 finishJSTest(); 38 }); 39 debug(""); 40 debug("We now set the media source to be the empty string to force an error, which should disable the fullscreen button"); 32 41 media.src = ""; 33 });34 35 media.addEventListener("error", () => {36 shouldBeFalse("mediaController.controls.fullscreenButton.enabled");37 debug("");38 container.remove();39 media.remove();40 finishJSTest();41 42 }); 42 43 -
trunk/LayoutTests/platform/ios-simulator/TestExpectations
r213346 r213348 2849 2849 media/modern-media-controls/media-controller/media-controller-toggle-compact-mode.html [ Skip ] 2850 2850 2851 webkit.org/b/168668 media/modern-media-controls/fullscreen-support/fullscreen-support-enabled.html [ Pass Failure ]2852 2853 2851 # Form validation popover does not obey minimum font size setting on iOS but Dynamic Type instead. 2854 2852 fast/forms/validation-message-minimum-font-size.html [ Skip ]
Note: See TracChangeset
for help on using the changeset viewer.