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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/remote-playback/disable-remote-playback-cancel-watch-availability-throws.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 calling cancelWatchAvailability() when disableRemotePlayback at tribute is set throws an exception</title>
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 v.remote.watchAvailability(function() {})
13 .then(id => {
14 v.disableRemotePlayback = true;
15 v.remote.cancelWatchAvailability(id).then(
16 t.unreached_func(),
17 t.step_func(e => {
18 assert_equals(e.name, 'InvalidStateError');
19 v.remote.cancelWatchAvailability().then(
20 t.unreached_func(),
21 t.step_func_done(e => {
22 assert_equals(e.name, 'InvalidStateError');
23 })
24 );
25 }));
26 }, t.unreached_func());
27 }, 'Test that calling cancelWatchAvailability() when disableRemotePlayback attri bute is set throws an exception.');
28 </script>
29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698