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

Side by Side Diff: third_party/WebKit/LayoutTests/media/before-load-member-access.html

Issue 2019643002: Convert before-*, broken-* and constructors.html tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/before-load-member-access-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <!DOCTYPE HTML>
2 <head> 2 <title>Test that accessing member of a non loaded video works.</title>
3 <title>Test that accessing member of a non loaded video works.</title> 3 <script src="../resources/testharness.js"></script>
4 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 4 <script src="../resources/testharnessreport.js"></script>
5 (Please avoid writing new tests using video-test.js) --> 5 <video></video>
6 <script src=video-test.js></script> 6 <script>
7 <script> 7 test(function() {
8 function test() 8 var video = document.querySelector("video");
9 { 9 assert_equals(video.played.length, 0);
10 findMediaElement(); 10 assert_equals(video.buffered.length, 0);
11 11 assert_equals(video.seekable.length, 0);
12 run("video.played"); 12 assert_equals(video.volume, 1);
13 run("video.buffered"); 13 });
14 run("video.seekable"); 14 </script>
15 run("video.volume");
16 consoleWrite("SUCCESS");
17 endTest();
18 }
19 </script>
20 </head>
21
22 <body onload="test()">
23
24 <video controls></video>
25 <p>Test that accessing member of a non loaded video works.</p>
26
27 </body>
28 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/before-load-member-access-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698