⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 175986 in webkit


Ignore:
Timestamp:
Nov 11, 2014, 4:09:51 PM (12 years ago)
Author:
ap@apple.com
Message:

compositing/video/video-border-radius.html frequently times out on 10.8

Add an error even listener, to at hopefully get a proper failure when this happens.

  • compositing/video/video-border-radius.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r175984 r175986  
     12014-11-11  Alexey Proskuryakov  <ap@apple.com>
     2
     3        compositing/video/video-border-radius.html frequently times out on 10.8
     4
     5        Add an error even listener, to at hopefully get a proper failure when this happens.
     6
     7        * compositing/video/video-border-radius.html:
     8
    192014-11-11  Alexey Proskuryakov  <ap@apple.com>
    210
  • trunk/LayoutTests/compositing/video/video-border-radius.html

    r175979 r175986  
    5555        var count = totalCount;
    5656        document.addEventListener("canplaythrough", function () {
    57             if (!--count) {
    58                 if (window.testRunner)
    59                     setTimeout(function() {
    60                         testRunner.notifyDone();
    61                     }, totalCount * 150);
     57            if (!--count && window.testRunner) {
     58                setTimeout(function() {
     59                    testRunner.notifyDone();
     60                }, totalCount * 150);
    6261            }
     62        }, true);
     63
     64        document.addEventListener("error", function (event) {
     65            console.log("Video " + event.target.getAttribute("name") + " failed to load, error " + event.target.error.code);
     66            if (window.testRunner)
     67                testRunner.notifyDone();
    6368        }, true);
    6469
     
    7176   
    7277    <div class="wrapper">
    73         <video></video>
     78        <video name="1"></video>
    7479        <div class="obscurer"></div>
    7580    </div>
    7681
    7782    <div class="wrapper non-uniform" style="top: 100px;">
    78         <video></video>
     83        <video name="2"></video>
    7984        <div class="obscurer"></div>
    8085    </div>
Note: See TracChangeset for help on using the changeset viewer.