Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/media/video-buffered-range-contains-currentTime.html

Issue 2439083003: Replace flaky test, wrangle with harness/infra
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Test that the painted buffered range contains currentTime.</title>
3 <script src="../../media-resources/media-file.js"></script>
4 <video controls></video>
5 <script>
6 var video = document.querySelector("video");
7
8 testRunner.waitUntilDone();
9 video.onended = function() {
10 testRunner.notifyDone();
11 };
12
13 video.onseeked = function() {
14 video.play();
15 };
16
17 video.onloadedmetadata = function() {
18 video.currentTime = video.duration - 0.5;
19 };
20
21 var mediaFile = findMediaFile("audio", "../../../media/content/test");
22 var type = mimeTypeForExtension(mediaFile.split(".").pop());
23 video.src = "http://127.0.0.1:8000/media/video-throttled-load.cgi?name=" + media File + "&throttle=5000&nph=1&type=" + type;
24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698