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

Side by Side Diff: third_party/WebKit/LayoutTests/media/play-promise-crash.html

Issue 2048393002: Test for bug 618429. (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
« 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Crash test for play() promise</title>
5 </head>
6 <body>
7 <script src="../resources/testharness.js"></script>
8 <script src="../resources/testharnessreport.js"></script>
9 <script src="media-file.js"></script>
10 <script>
11 window.internals.settings.setMediaPlaybackRequiresUserGesture(true);
12
13 async_test(function(t) {
14 var video = document.createElement('video');
15 video.src = findMediaFile('video', 'content/test');
16 video.play().then(t.step_func_done(function() {
17 assert_unreached();
18 }), t.step_func(function() {
19 gc();
whywhat 2016/06/09 19:48:27 nit: add a comment of what this test actually chec
20 t.done();
21 }));
22 });
whywhat 2016/06/09 19:48:27 nit: give a name to the test?
23 </script>
24 </body>
25 </html>
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