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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-poster-after-loadedmetadata.html

Issue 2586223002: Unflake media/video-poster-after-loadedmetadata.html (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Tests setting the poster attribute after a video fires loadedmetadata.</t itle> 2 <title>Tests setting the poster attribute after a video fires loadedmetadata.</t itle>
3 <video></video>
3 <script> 4 <script>
4 if (window.testRunner) 5 if (window.testRunner)
5 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
6 7
7 function startTest() { 8 var video = document.querySelector('video');
8 var video = document.querySelector('video'); 9 video.addEventListener("loadedmetadata", _ => {
9 video.addEventListener("loadedmetadata", function () { 10 video.poster = "content/abe.png";
10 video.poster = "content/abe.png"; 11 setTimeout(_ => requestAnimationFrame(_ => testRunner.notifyDone()));
11 if (window.testRunner) 12 });
12 setTimeout(function() { testRunner.notifyDone(); }, 2000);
13 });
14 13
15 video.src = "resources/test-positive-start-time.webm"; 14 video.src = "resources/test-positive-start-time.webm";
16 }
17
18 window.addEventListener('load', startTest, false);
19 </script> 15 </script>
20 <video></video>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698