Revert "Add sbox tests related to warming up of locales."
[chromium-blink-merge.git] / ui / file_manager / integration_tests / video_player / open_video_files.js
blobe0685039c97e046e886bcd01e0db13e41e00a653
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.
5 'use strict';
7 /**
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);
16 });
19 /**
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]');
35 });
36 });