Changeset 213194 in webkit


Ignore:
Timestamp:
Feb 28, 2017 5:01:49 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

LayoutTest media/modern-media-controls/placard-support/placard-support-airplay.html is a flaky timeout
https://bugs.webkit.org/show_bug.cgi?id=167441
<rdar://problem/30770034>

Patch by Antoine Quint <Antoine Quint> on 2017-02-28
Reviewed by Dean Jackson.

This test would sometime fail when calling media.webkitShowPlaybackTargetPicker() due to the requirement
that the media be playable for that call to succeed. So we add an event listener for the "canplay" event
before we proceed to ensure that this call will always succeed. The fact that the media is playing is
irrelevant so we remove the "autoplay" attribute.

  • media/modern-media-controls/placard-support/placard-support-airplay.html:
  • platform/mac/TestExpectations:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r213174 r213194  
     12017-02-28  Antoine Quint  <graouts@apple.com>
     2
     3        LayoutTest media/modern-media-controls/placard-support/placard-support-airplay.html is a flaky timeout
     4        https://bugs.webkit.org/show_bug.cgi?id=167441
     5        <rdar://problem/30770034>
     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/placard-support/placard-support-airplay.html:
     15        * platform/mac/TestExpectations:
     16
    1172017-02-28  Alexey Proskuryakov  <ap@apple.com>
    218
  • trunk/LayoutTests/media/modern-media-controls/placard-support/placard-support-airplay.html

    r211132 r213194  
    1616   
    1717</style>
    18 <video src="../../content/test.mp4" controls autoplay></video>
     18<video src="../../content/test.mp4" controls></video>
    1919<div id="host"></div>
    2020<script type="text/javascript">
     
    2828const mediaController = createControls(container, media, null);
    2929
    30 (function makeAirPlayAvailable()
     30media.addEventListener("canplay", makeAirPlayAvailable);
     31
     32function makeAirPlayAvailable()
    3133{
    3234    media.addEventListener("webkitplaybacktargetavailabilitychanged", playbackTargetAvailabilityChangedOnce, true);
    3335    window.internals.setMockMediaPlaybackTargetPickerEnabled(true);
    34 })();
     36}
    3537
    3638function playbackTargetAvailabilityChangedOnce(event)
     
    5153
    5254    media.removeEventListener('webkitplaybacktargetavailabilitychanged', playbackTargetAvailabilityChangedAgain, true);
    53 
    54     window.setTimeout(enterAirPlay, 100);
     55    enterAirPlay();
    5556}
    5657
  • trunk/LayoutTests/platform/mac/TestExpectations

    r213115 r213194  
    14951495webkit.org/b/167396 media/modern-media-controls/media-controller/media-controller-auto-hide-rewind-with-mouse-enter.html [ Pass Failure ]
    14961496
    1497 webkit.org/b/167441 media/modern-media-controls/placard-support/placard-support-airplay.html [ Pass Timeout ]
    1498 
    14991497webkit.org/b/167442 media/modern-media-controls/airplay-support/airplay-support.html [ Pass Timeout ]
    15001498
Note: See TracChangeset for help on using the changeset viewer.