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

Side by Side Diff: chrome/test/media_router/resources/presentation_receiver.html

Issue 2820433003: [Presentation API] Add browser tests for 1-UA mode (Closed)
Patch Set: fix android test failures Created 3 years, 8 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 | « chrome/test/media_router/resources/common.js ('k') | 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>Media Router Integration Test - Receiver Page</title>
5 <script>
6 const addConnection = connection => {
7 connection.onconnect = () => {
8 connection.onmessage = event => {
9 if (event.data == 'close') {
10 connection.close();
11 } else {
12 connection.send('Pong: ' + event.data);
13 }
14 }
15 };
16 };
17
18 navigator.presentation.receiver.connectionList
19 .then(list => {
20 list.onconnectionavailable = evt => {
21 addConnection(evt.connection);
22 };
23 list.connections.map(connection => {
24 addConnection(connection);
25 });
26 });
27 </script>
28 </head>
29 <body>
30 </body>
31 </html>
OLDNEW
« no previous file with comments | « chrome/test/media_router/resources/common.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698