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

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: resolve code review comments from Derek 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
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html xmlns="http://www.w3.org/1999/xhtml">
mark a. foltz 2017/04/18 01:03:44 Spot checking the LayoutTests, I don't think we us
zhaobin 2017/04/18 03:17:10 Done.
3 <head>
4 <title>MR Integration Basic Test</title>
mark a. foltz 2017/04/18 01:03:44 Maybe: Media Router Integration Test - Receiver Pa
zhaobin 2017/04/18 03:17:11 Done.
5 <script type="text/javascript">
mark a. foltz 2017/04/18 01:03:44 Just <script>
zhaobin 2017/04/18 03:17:10 Done.
6 const addConnection = connection => {
7 connection.onconnect = function() {
8 this.onmessage = event => {
9 if (event.data == 'close') {
10 connection.close();
mark a. foltz 2017/04/18 01:03:44 Use |this| or |connection| consistently in the eve
zhaobin 2017/04/18 03:17:11 Done.
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
« chrome/test/media_router/resources/common.js ('K') | « 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