Changeset 85015 in webkit


Ignore:
Timestamp:
Apr 26, 2011 10:07:27 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-26 Ami Fischman <fischman@google.com>

Reviewed by David Levin.

Fix media/video-controls-transformed.html layouttest to compute the click
location of the play button instead of hard-coding pixel values that have
been wrong for a long time. Start expecting the test to pass in chromium
(it's currently Skipped on all platforms).
https://bugs.webkit.org/show_bug.cgi?id=58590

  • media/video-controls-transformed.html:
  • platform/chromium/test_expectations.txt:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r85014 r85015  
     12011-04-26  Ami Fischman  <fischman@google.com>
     2
     3        Reviewed by David Levin.
     4
     5        Fix media/video-controls-transformed.html layouttest to compute the click
     6        location of the play button instead of hard-coding pixel values that have
     7        been wrong for a long time.  Start expecting the test to pass in chromium
     8        (it's currently Skipped on all platforms).
     9        https://bugs.webkit.org/show_bug.cgi?id=58590
     10
     11        * media/video-controls-transformed.html:
     12        * platform/chromium/test_expectations.txt:
     13
    1142011-04-26  Dirk Pranke  <dpranke@chromium.org>
    215
  • trunk/LayoutTests/media/video-controls-transformed.html

    r79630 r85015  
    1818        testExpected("video.controls", null, '!=');
    1919        waitForEvent('canplaythrough', function () {
    20             if (window.eventSender)
    21             {
    22                 eventSender.mouseMoveTo(54,240); // over play button
     20            if (window.eventSender) {
     21                // Find the play button and click the middle of its bounding box.
     22                // This approach hard-codes the construction order of the media
     23                // controls, which is ugly, but sadly is also currently the only
     24                // way to do it.
     25                // http://bugs.webkit.org/show_bug.cgi?id=58584 is tracking fixing that.
     26                var playButton = layoutTestController.shadowRoot(video).firstChild.firstChild.children[1];
     27                if (!playButton) {
     28                    failTest("Failed to find play/pause button.");
     29                }
     30                var playButtonBoundingRect = playButton.getBoundingClientRect();
     31                var clickX = playButtonBoundingRect.left + playButtonBoundingRect.width / 2;
     32                var clickY = playButtonBoundingRect.top + playButtonBoundingRect.height / 2;
     33                eventSender.mouseMoveTo(clickX, clickY);
    2334                eventSender.mouseDown();
    2435                eventSender.mouseUp();
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r85014 r85015  
    822822// KNOWNISSUE : fails because progress event is not published
    823823BUGCR59675 BUGCR59263 SKIP : media/event-attributes.html = PASS FAIL TIMEOUT
    824 
    825 // These tests are failing because they use position-dependent mouse clicks.
    826 // might be hard to fix
    827 BUGCR25375 : media/video-controls-transformed.html = FAIL
    828824
    829825// We haven't implemented the WebKit fullscreen extension.
Note: See TracChangeset for help on using the changeset viewer.