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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-element-dom-change-crash.html

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 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 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 5
6 <script src=../media-file.js></script> 6 <script src=../media-file.js></script>
7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
8 (Please avoid writing new tests using video-test.js) -->
7 <script src=../video-test.js></script> 9 <script src=../video-test.js></script>
8 <script> 10 <script>
9 function startTest() 11 function startTest()
10 { 12 {
11 consoleWrite("** Create video and text track element **"); 13 consoleWrite("** Create video and text track element **");
12 var video = document.createElement("video"); 14 var video = document.createElement("video");
13 var track = document.createElement("track"); 15 var track = document.createElement("track");
14 16
15 consoleWrite("** Append the track element to the video element * *"); 17 consoleWrite("** Append the track element to the video element * *");
16 video.appendChild(track); 18 video.appendChild(track);
17 19
18 consoleWrite("** Set the mode of the text track to \"showing\" * *"); 20 consoleWrite("** Set the mode of the text track to \"showing\" * *");
19 track.track.mode = "showing"; 21 track.track.mode = "showing";
20 22
21 consoleWrite(""); 23 consoleWrite("");
22 consoleWrite("No crash. PASS."); 24 consoleWrite("No crash. PASS.");
23 consoleWrite(""); 25 consoleWrite("");
24 26
25 endTest(); 27 endTest();
26 } 28 }
27 </script> 29 </script>
28 </head> 30 </head>
29 <body onload="startTest()"> 31 <body onload="startTest()">
30 <p>Tests that the browser handles properly simple DOM mutations.</p> 32 <p>Tests that the browser handles properly simple DOM mutations.</p>
31 </body> 33 </body>
32 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698