blob: 5b2d335e14c852870744b214236134e6c75183bc [file] [log] [blame]
// Copyright 2015 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';
/**
* Checks the initial elements in the video player.
* @return {Promise} Promise to be fulfilled with on success.
*/
testcase.checkInitialElements = function() {
var test = openVideos('local', 'downloads', [ENTRIES.world]);
return test.then(function(args) {
var appId = args[0];
var videoPlayer = args[1];
return Promise.all([
remoteCallVideoPlayer.waitForElement(appId, 'html[i18n-processed]'),
remoteCallVideoPlayer.waitForElement(appId, 'div#video-player'),
remoteCallVideoPlayer.waitForElement(
appId, '#video-container > video[autopictureinpicture]'),
]);
});
};