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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-source-inserted.html

Issue 2015503002: Move TODO(philipj) to TODO(foolip) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>networkState after inserting &lt;source&gt; test</title> 4 <title>networkState after inserting &lt;source&gt; test</title>
5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 5 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
6 (Please avoid writing new tests using video-test.js) --> 6 (Please avoid writing new tests using video-test.js) -->
7 <script src=video-test.js></script> 7 <script src=video-test.js></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <video controls><source></video> 10 <video controls><source></video>
11 11
12 <p>Test that a &lt;source&gt; inserted when networkState is NETWORK_NO_S OURCE triggers 12 <p>Test that a &lt;source&gt; inserted when networkState is NETWORK_NO_S OURCE triggers
13 resource selection, immediately changing networkState to NETWORK_NO_SOUR CE.</p> 13 resource selection, immediately changing networkState to NETWORK_NO_SOUR CE.</p>
14 14
15 <script> 15 <script>
16 consoleWrite("&lt;source&gt; inserted by the parser."); 16 consoleWrite("&lt;source&gt; inserted by the parser.");
17 video = document.querySelector('video'); 17 video = document.querySelector('video');
18 testExpected("video.networkState", HTMLMediaElement.prototype.NETWOR K_NO_SOURCE, "=="); 18 testExpected("video.networkState", HTMLMediaElement.prototype.NETWOR K_NO_SOURCE, "==");
19 19
20 consoleWrite("<br>&lt;video&gt; created with script."); 20 consoleWrite("<br>&lt;video&gt; created with script.");
21 video = document.createElement('video'); 21 video = document.createElement('video');
22 testExpected("video.networkState", HTMLMediaElement.prototype.NETWOR K_EMPTY, "=="); 22 testExpected("video.networkState", HTMLMediaElement.prototype.NETWOR K_EMPTY, "==");
23 consoleWrite("&lt;source&gt; inserted by script."); 23 consoleWrite("&lt;source&gt; inserted by script.");
24 video.appendChild(document.createElement('source')); 24 video.appendChild(document.createElement('source'));
25 testExpected("video.networkState", HTMLMediaElement.prototype.NETWOR K_NO_SOURCE, "=="); 25 testExpected("video.networkState", HTMLMediaElement.prototype.NETWOR K_NO_SOURCE, "==");
26 if (window.testRunner) 26 if (window.testRunner)
27 testRunner.notifyDone(); 27 testRunner.notifyDone();
28 </script> 28 </script>
29 29
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698