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

Side by Side Diff: third_party/WebKit/LayoutTests/media/controls-css-overload.html

Issue 2020893002: Convert controls-css*, controls-drag* and controls-overlay* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 PUBLIC "-//W3C//DTD HTML 4.01//EN" 1 <!DOCTYPE html>
2 "http://www.w3.org/TR/html4/strict.dtd"> 2 <title>Testing that overloading some controls doesn't crash the browser</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script src="media-file.js"></script>
6 <style>
7 .nocontrols::-webkit-media-controls-panel {
8 display:none;
9 }
10 .notimeline::-webkit-media-controls-timeline-container {
11 display:none;
12 }
13 </style>
14 <video class="nocontrols notimeline" width=300 height=200 controls></video>
fs 2016/05/29 14:28:17 Should probably keep the two <video> from the old
Srirama 2016/05/30 13:19:19 Done.
15 <script>
16 async_test(function(t) {
fs 2016/05/29 14:28:17 The old version wasn't async - IIRC, this test onl
Srirama 2016/05/30 13:19:19 I don't know what to keep in the test() function,
fs 2016/05/30 13:37:22 Thanks for digging that up. Empty test() seems fin
Srirama 2016/05/30 13:59:22 Fine, i will also go with empty one.
17 var video = document.querySelector("video");
18 video.src = findMediaFile("video", "content/test");
3 19
4 <html> 20 video.oncanplaythrough = t.step_func_done();
5 <head> 21 });
6 <title>Testing that overloading some controls doesn't crash the browser</tit le> 22 </script>
7 <style>
8 .nocontrols::-webkit-media-controls-panel{
9 display:none;
10 }
11 .notimeline::-webkit-media-controls-timeline-container{
12 display:none;
13 }
14 </style>
15 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
16 (Please avoid writing new tests using video-test.js) -->
17 <script src=video-test.js></script>
18 </head>
19 <body>
20 <video class="nocontrols" width=300 height=200 controls></video>
21 <video class="notimeline" width=300 height=200 controls></video>
22 <script>
23 consoleWrite("I did not crash");
24 endTest();
25 </script>
26 </body> 23 </body>
27 </html> 24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698