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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/remote-playback/watch-availability-initial-callback.html

Issue 2677563003: Remote Playback API: move tests that can be moved to WPT. (Closed)
Patch Set: rebase Created 3 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <title>Test that the callback is called once watchAvailability() resolves.</titl e>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script src="/common/media.js"></script>
7 <script>
8 async_test(t => {
9 var v = document.createElement('video');
10 v.src = getVideoURI('movie_5');
11
12 var promiseResolved = false;
13
14 function callback(available) {
15 assert_true(promiseResolved);
16 }
17
18 v.remote.watchAvailability(t.step_func_done(callback)).then(
19 t.step_func(() => { promiseResolved = true; }), t.unreached_func());
20 }, 'Test that the callback is called once watchAvailability() resolves.');
21 </script>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698