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

Side by Side Diff: LayoutTests/http/tests/media/video-load-metadata-decode-error.html

Issue 330593005: HTMLMediaElement::webMediaPlayer() should never be null if m_readyState >= HAVE_METADATA (media eng… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: updated as per review comments 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <title>Loading corrupted video with proper metadata</title>
4 <script src=../../../media-resources/media-file.js></script>
5 <script src=../../../media-resources/video-test.js></script>
6 <script>
7 function loadedmetadata(e)
8 {
9 consoleWrite("loaded metadata of media file");
10 }
11
12 function error(e)
13 {
14 consoleWrite("failed to load media file");
15 testExpected("video.networkState", HTMLMediaElement.NETWORK_IDLE);
16 endTest();
17 }
18
19 function start()
20 {
21 findMediaElement();
22
23 waitForEvent('loadedmetadata', loadedmetadata);
24 waitForEvent("error", error);
25
26 var movie = findMediaFile("video", "resources/test");
27 var type = mimeTypeForExtension(movie.split('.').pop());
28 video.src = "video-load-metadata-decode-error.cgi?name=" + movie + " &type=" + type;
29 video.play();
30 }
31 </script>
32 </head>
33 <body onload="start()">
34 <video id="video"></video>
35 <p>
36 This test case simulates a decode error after loading meta data of a video.<br/> <br/>
37 </p>
38 </body>
39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698