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

Changeset 211131 in webkit


Ignore:
Timestamp:
Jan 24, 2017, 6:59:11 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

LayoutTest media/modern-media-controls/tracks-panel/tracks-panel-hide.html is a flaky timeout
https://bugs.webkit.org/show_bug.cgi?id=167311

Patch by Antoine Quint <Antoine Quint> on 2017-01-24
Reviewed by Dean Jackson.

Source/WebCore:

Ensure we have a chance to start the transition (on the next frame) before registering for an event
tracking its completion.

  • Modules/modern-media-controls/controls/tracks-panel.js:

(TracksPanel.prototype.hide):

LayoutTests:

This test should no longer be flaky, so let's no mark it as such anymore.

  • platform/mac/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r211130 r211131  
     12017-01-24  Antoine Quint  <graouts@apple.com>
     2
     3        LayoutTest media/modern-media-controls/tracks-panel/tracks-panel-hide.html is a flaky timeout
     4        https://bugs.webkit.org/show_bug.cgi?id=167311
     5
     6        Reviewed by Dean Jackson.
     7
     8        This test should no longer be flaky, so let's no mark it as such anymore.
     9
     10        * platform/mac/TestExpectations:
     11
    1122017-01-24  Antoine Quint  <graouts@apple.com>
    213
  • trunk/LayoutTests/platform/mac/TestExpectations

    r211096 r211131  
    14941494webkit.org/b/167275 media/modern-media-controls/tracks-support/tracks-support-show-panel-after-dragging-controls.html [ Pass Failure ]
    14951495
    1496 webkit.org/b/167311 [ Debug ] media/modern-media-controls/tracks-panel/tracks-panel-hide.html [ Pass Timeout ]
    1497 
    14981496webkit.org/b/167347 media/modern-media-controls/media-controller/media-controller-auto-hide-mouse-enter-and-mouse-leave.html [ Pass Failure ]
    14991497
  • trunk/Source/WebCore/ChangeLog

    r211126 r211131  
     12017-01-24  Antoine Quint  <graouts@apple.com>
     2
     3        LayoutTest media/modern-media-controls/tracks-panel/tracks-panel-hide.html is a flaky timeout
     4        https://bugs.webkit.org/show_bug.cgi?id=167311
     5
     6        Reviewed by Dean Jackson.
     7
     8        Ensure we have a chance to start the transition (on the next frame) before registering for an event
     9        tracking its completion.
     10
     11        * Modules/modern-media-controls/controls/tracks-panel.js:
     12        (TracksPanel.prototype.hide):
     13
    1142017-01-24  Simon Fraser  <simon.fraser@apple.com>
    215
  • trunk/Source/WebCore/Modules/modern-media-controls/controls/tracks-panel.js

    r209523 r211131  
    4444
    4545        this.element.addEventListener("transitionend", this);
    46         this.element.classList.add("fade-out");
     46
     47        // Ensure a transition will indeed happen by starting it only on the next frame.
     48        window.requestAnimationFrame(() => { this.element.classList.add("fade-out") });
    4749    }
    4850
Note: See TracChangeset for help on using the changeset viewer.