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

Unified Diff: chrome/test/data/extensions/api_test/file_manager_browsertest/video_player/test_util.js

Issue 505043002: Files.app Test: check the cast icon in drive volume (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
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..5e5e29a0a8823d61491872857e11bf13c08ad45b 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,15 @@ 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]];
});
});
}
+
+function loadMockCastExtesntion(appWindow) {
hirono 2014/08/26 00:56:58 Please add jsdoc.
yoshiki 2014/08/26 05:31:24 Done.
+ var script = document.createElement('script');
+ script.src =
+ 'chrome-extension://ljoplibgfehghmibaoaepfagnmbbfiga/' +
+ 'cast_extension_mock/load.js';
+ appWindow.contentWindow.document.body.appendChild(script);
+}

Powered by Google App Engine
This is Rietveld 408576698