Chromium Code Reviews| Index: chrome/test/data/extensions/api_test/file_manager_browsertest/video_player/test_util.js |
| diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/video_player/test_util.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/video_player/test_util.js |
| index f8ccbe451bfb4ba34834a3785e71b10187088c28..9684a221e5e6ad725f51a11cccc7af1db6b0a0f6 100644 |
| --- a/chrome/test/data/extensions/api_test/file_manager_browsertest/video_player/test_util.js |
| +++ b/chrome/test/data/extensions/api_test/file_manager_browsertest/video_player/test_util.js |
| @@ -37,7 +37,19 @@ function launch(testVolumeName, volumeType, entries, opt_selected) { |
| waitForElement(appWindow, '#video-player[first-video][last-video]'), |
| waitForElement(appWindow, '.play.media-button[state="playing"]'), |
| ]).then(function(args) { |
| - return args[0]; |
| + return [appWindow, args[0]]; |
| }); |
| }); |
| } |
| + |
| +/** |
| + * Load the mock cast extension to the content page. |
|
hirono
2014/08/26 05:59:01
nit: Loads
yoshiki
2014/08/26 06:11:01
Done.
|
| + * @param {AppWindow} appWindow The target video player window. |
| + */ |
| +function loadMockCastExtesntion(appWindow) { |
| + var script = document.createElement('script'); |
| + script.src = |
| + 'chrome-extension://ljoplibgfehghmibaoaepfagnmbbfiga/' + |
| + 'cast_extension_mock/load.js'; |
| + appWindow.contentWindow.document.body.appendChild(script); |
| +} |