-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[remote-playback] Editorial improvements to text and code (#41852)
- Loading branch information
1 parent
5f31090
commit 119e077
Showing
19 changed files
with
77 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 6 additions & 7 deletions
13
remote-playback/disable-remote-playback-cancel-watch-availability-throws.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<title> | ||
Test that calling cancelWatchAvailability() when disableRemotePlayback | ||
attribute is set throws an exception | ||
Test that calling cancelWatchAvailability() when disableRemotePlayback attribute is set throws InvalidStateError | ||
</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/common/media.js"></script> | ||
<script> | ||
async_test((t) => { | ||
async_test(t => { | ||
let v = document.createElement("video"); | ||
v.src = getVideoURI("/media/movie_5"); | ||
|
||
v.remote | ||
.watchAvailability(() => {}) | ||
.then((id) => { | ||
.then(id => { | ||
v.disableRemotePlayback = true; | ||
v.remote.cancelWatchAvailability(id).then( | ||
t.unreached_func(), | ||
t.step_func((e) => { | ||
t.step_func(e => { | ||
assert_equals(e.name, "InvalidStateError"); | ||
v.remote.cancelWatchAvailability().then( | ||
t.unreached_func(), | ||
t.step_func_done((e) => { | ||
t.step_func_done(e => { | ||
assert_equals(e.name, "InvalidStateError"); | ||
}) | ||
); | ||
}) | ||
); | ||
}, t.unreached_func()); | ||
}, "Test that calling cancelWatchAvailability() when disableRemotePlayback attribute is set throws an exception."); | ||
}, "Test that calling cancelWatchAvailability() when disableRemotePlayback attribute is set throws InvalidStateError."); | ||
</script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
remote-playback/disable-remote-playback-watch-availability-throws.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.