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

Side by Side Diff: LayoutTests/compositing/video/video-with-invalid-source.html

Issue 203623006: Remove display() from video-with-invalid-source (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« 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 <script src="../../resources/run-after-display.js"></script>
2 <script> 3 <script>
3 if (window.testRunner) { 4 if (window.testRunner) {
4 testRunner.waitUntilDone(); 5 testRunner.waitUntilDone();
5 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
6 } 7 }
7 8
8 function test() { 9 function test() {
9 var v = document.createElement("video"); 10 var v = document.createElement("video");
10 document.body.appendChild(v); 11 document.body.appendChild(v);
11 var src = document.createElement("source"); 12 var src = document.createElement("source");
12 src.src = "notarealsource.txt"; 13 src.src = "notarealsource.txt";
13 v.appendChild(src); 14 v.appendChild(src);
14 src.addEventListener("error", function() { 15 src.addEventListener("error", function() {
15 if (window.testRunner) { 16 if (window.testRunner) {
16 testRunner.display(); 17 runAfterDisplay(function() {
17 // If we didn't crash here, yay! Test is a success 18 // If we didn't crash here, yay! Test is a success
18 document.body.appendChild(document.createTextNode("PASS")); 19 document.body.appendChild(document.createTextNode("PASS"));
19 testRunner.notifyDone(); 20 testRunner.notifyDone();
21 });
20 } 22 }
21 }, false); 23 }, false);
22 } 24 }
23 </script> 25 </script>
24 <body onload="test()"> 26 <body onload="test()">
25 </body> 27 </body>
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