Changeset 158752 in webkit


Ignore:
Timestamp:
Nov 6, 2013 9:31:44 AM (11 years ago)
Author:
jer.noble@apple.com
Message:

Unreviewed gardening; Fix expected results for video-seek-with-negative-playback.html,
and modify the test to conform to media test style.

  • media/video-seek-with-negative-playback-expected.txt:
  • media/video-seek-with-negative-playback.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r158744 r158752  
     12013-11-06  Jer Noble  <jer.noble@apple.com>
     2
     3        Unreviewed gardening; Fix expected results for video-seek-with-negative-playback.html,
     4        and modify the test to conform to media test style.
     5
     6        * media/video-seek-with-negative-playback-expected.txt:
     7        * media/video-seek-with-negative-playback.html:
     8
    192013-10-24  Sergio Villar Senin  <svillar@igalia.com>
    210
  • trunk/LayoutTests/media/video-seek-with-negative-playback-expected.txt

    r158734 r158752  
     1
     2Test that seeking with a negative playbackRate works correctly.
     3
    14EVENT(canplaythrough)
    25EVENT(seeked)
  • trunk/LayoutTests/media/video-seek-with-negative-playback.html

    r158734 r158752  
     1<!DOCTYPE html>
    12<html>
    23    <head>
     
    89                findMediaElement();
    910                video.src = findMediaFile("video", "content/test");
    10                 waitForEventOnce('canplaythrough',
    11                     function () {
    12                         video.playbackRate = -1;
    13                         video.currentTime = 3;
    14                         waitForEventOnce('seeked', function () {
    15                             waitForEvent('timeupdate', function () {
    16                                 if (lastTime == -1) {
    17                                     lastTime = video.currentTime;
    18                                     return;
    19                                 }
    20                                 testExpected("video.currentTime", 3, "<");
    21                                 endTest();
    22                             });
    23                         });
    24                         video.play();
    25                     });
     11                waitForEventOnce('canplaythrough', canPlayThrough);
     12            }
     13
     14            function canPlayThrough() {
     15                video.playbackRate = -1;
     16                video.currentTime = 3;
     17                waitForEventOnce('seeked', seeked);
     18                video.play();
     19            }
     20
     21            function seeked() {
     22                waitForEvent('timeupdate', timeupdate);
     23            }
     24
     25            function timeupdate() {
     26                if (lastTime == -1) {
     27                    lastTime = video.currentTime;
     28                    return;
     29                }
     30                testExpected("video.currentTime", 3, "<");
     31                endTest();
    2632            }
    2733        </script>
    2834    </head>
    2935    <body onload="start()">
    30         <video/>
     36        <video></video>
     37        <p>Test that seeking with a negative playbackRate works correctly.</p>
    3138    </body>
    3239</html>
Note: See TracChangeset for help on using the changeset viewer.