| Index: chrome/test/data/extensions/api_test/media_remoting/route_terminate.js
|
| diff --git a/chrome/test/data/extensions/api_test/media_remoting/route_terminate.js b/chrome/test/data/extensions/api_test/media_remoting/route_terminate.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..15eddf0fc323dabf745e8c4fa7564df9dd9a01b2
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/media_remoting/route_terminate.js
|
| @@ -0,0 +1,28 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +'use strict';
|
| +
|
| +let video = document.getElementById("video");
|
| +video.onended = function () {
|
| + chrome.test.succeed();
|
| +}
|
| +
|
| +chrome.test.runTests([
|
| + function RouteTerminate() {
|
| + mrTest.StartMediaRouter()
|
| + .then(result => {
|
| + const mediaRouterService = result['mrService'];
|
| + let testParameter = new mrTest.Parameters();
|
| + testParameter.route_terminate_while_remoting = true;
|
| + mediaRouterService.setHandlers(
|
| + new mrTest.ProviderManager(mediaRouterService, testParameter));
|
| + });
|
| + chrome.test.notifyPass();
|
| + }
|
| +]);
|
| +
|
| +
|
| +
|
| +
|
|
|