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

Side by Side Diff: chrome/test/data/extensions/api_test/media_remoting/route_terminate.js

Issue 2724173002: Media Remoting: Add browser tests. (Closed)
Patch Set: Created 3 years, 9 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 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 'use strict';
6
7 let video = document.getElementById("video");
8 video.onended = function () {
9 chrome.test.succeed();
10 }
11
12 chrome.test.runTests([
13 function RouteTerminate() {
14 mrTest.StartMediaRouter()
15 .then(result => {
16 const mediaRouterService = result['mrService'];
17 let testParameter = new mrTest.Parameters();
18 testParameter.route_terminate_while_remoting = true;
19 mediaRouterService.setHandlers(
20 new mrTest.ProviderManager(mediaRouterService, testParameter));
21 });
22 chrome.test.notifyPass();
23 }
24 ]);
25
26
27
28
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698