1 // Copyright 2014 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.
8 * The openSingleImage test for Downloads.
9 * @return {Promise} Promise to be fulfilled with on success.
11 testcase.openSingleVideoOnDownloads = function() {
12 var test = openSingleVideo('local', 'downloads', ENTRIES.world);
13 return test.then(function(args) {
14 var videoPlayer = args[1];
15 chrome.test.assertFalse('cast-available' in videoPlayer.attributes);
20 * The openSingleImage test for Drive.
21 * @return {Promise} Promise to be fulfilled with on success.
23 testcase.openSingleVideoOnDrive = function() {
24 var test = openSingleVideo('drive', 'drive', ENTRIES.world);
25 return test.then(function(args) {
26 var appWindow = args[0];
27 var videoPlayer = args[1];
28 chrome.test.assertFalse('cast-available' in videoPlayer.attributes);
30 return remoteCallVideoPlayer.callRemoteTestUtil(
31 'loadMockCastExtension', appWindow, []).then(function() {
32 // Loads cast extension and wait for available cast.
33 return remoteCallVideoPlayer.waitForElement(
34 appWindow, '#video-player[cast-available]');