Changeset 213196 in webkit
- Timestamp:
- Feb 28, 2017 5:08:12 PM (7 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r213194 r213196 1 2017-02-28 Antoine Quint <graouts@apple.com> 2 3 LayoutTest media/modern-media-controls/airplay-support/airplay-support.html is a flaky timeout 4 https://bugs.webkit.org/show_bug.cgi?id=167442 5 <rdar://problem/30770374> 6 7 Reviewed by Dean Jackson. 8 9 This test would sometime fail when calling media.webkitShowPlaybackTargetPicker() due to the requirement 10 that the media be playable for that call to succeed. So we add an event listener for the "canplay" event 11 before we proceed to ensure that this call will always succeed. The fact that the media is playing is 12 irrelevant so we remove the "autoplay" attribute. 13 14 * media/modern-media-controls/airplay-support/airplay-support.html: 15 * platform/mac/TestExpectations: 16 1 17 2017-02-28 Antoine Quint <graouts@apple.com> 2 18 -
trunk/LayoutTests/media/modern-media-controls/airplay-support/airplay-support.html
r211136 r213196 2 2 <script src="../resources/media-controls-loader.js" type="text/javascript"></script> 3 3 <body> 4 <video src="../../content/test.mp4" style="width: 320px; height: 240px;" autoplay></video>4 <video src="../../content/test.mp4" style="width: 320px; height: 240px;"></video> 5 5 <div id="host"></div> 6 6 <script type="text/javascript"> … … 14 14 const mediaController = createControls(container, media, null); 15 15 16 (function makeAirPlayAvailable() 16 media.addEventListener("canplay", makeAirPlayAvailable); 17 18 function makeAirPlayAvailable() 17 19 { 18 20 debug("Making AirPlay routes available."); 19 21 media.addEventListener("webkitplaybacktargetavailabilitychanged", playbackTargetAvailabilityChangedOnce, true); 20 22 window.internals.setMockMediaPlaybackTargetPickerEnabled(true); 21 } )();23 } 22 24 23 25 function playbackTargetAvailabilityChangedOnce(event) … … 42 44 shouldBeFalse("mediaController.controls.airplayButton.on"); 43 45 44 window.setTimeout(enterAirPlay, 100);46 enterAirPlay(); 45 47 } 46 48 -
trunk/LayoutTests/platform/mac/TestExpectations
r213194 r213196 1495 1495 webkit.org/b/167396 media/modern-media-controls/media-controller/media-controller-auto-hide-rewind-with-mouse-enter.html [ Pass Failure ] 1496 1496 1497 webkit.org/b/167442 media/modern-media-controls/airplay-support/airplay-support.html [ Pass Timeout ]1498 1499 1497 webkit.org/b/165874 streams/pipe-to.html [ Pass Failure ] 1500 1498
Note: See TracChangeset
for help on using the changeset viewer.