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

Side by Side Diff: LayoutTests/media/video-preload-none-no-stalled-event.html

Issue 327553002: Transition networkState back to NETWORK_IDLE on fetch if preload=none (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src=media-file.js></script>
3 <script src=video-test.js></script>
4 <script>
5 function runTest()
6 {
7 findMediaElement();
8
9 waitForEvent("suspend");
10 waitForEventAndFail("stalled");
11 consoleWrite("");
12
13 video.src = findMediaFile("video", "content/test");
14
15 // Give the progress timer enoug time to fire a 'stalled' event.
acolwell GONE FROM CHROMIUM 2014/06/09 17:54:17 nit: s/enoug/enough/
16 // (3s timeout + 0.5s slack)
17 setTimeout(endTest, 3000 + 500);
acolwell GONE FROM CHROMIUM 2014/06/09 17:54:17 This seems brittle. How about using waitForEventAn
fs 2014/06/10 12:36:24 SGTM. Done.
18 }
19 </script>
20 <body onload="runTest()">
21 <p>Test to see if a media element with preload=none dispatches a 'stalled' eve nt.</p>
22 <video preload=none></video>
23 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698