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

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

Issue 1296343003: Extend timeout for poster display. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | 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 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.waitUntilDone(); 5 testRunner.waitUntilDone();
6 6
7 function startTest() { 7 function startTest() {
8 var video = document.querySelector('video'); 8 var video = document.querySelector('video');
9 video.addEventListener("loadedmetadata", function () { 9 video.addEventListener("loadedmetadata", function () {
10 video.poster = "content/abe.png"; 10 video.poster = "content/abe.png";
11 if (window.testRunner) 11 if (window.testRunner)
12 setTimeout(function() { testRunner.notifyDone(); }, 1000); 12 setTimeout(function() { testRunner.notifyDone(); }, 2000);
13 }); 13 });
14 14
15 video.src = "resources/test-positive-start-time.webm"; 15 video.src = "resources/test-positive-start-time.webm";
16 } 16 }
17 17
18 window.addEventListener('load', startTest, false); 18 window.addEventListener('load', startTest, false);
19 </script> 19 </script>
20 <video></video> 20 <video></video>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698