OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * Checks the initial elements in the video player. | 8 * Checks the initial elements in the video player. |
9 * @return {Promise} Promise to be fulfilled with on success. | 9 * @return {Promise} Promise to be fulfilled with on success. |
10 */ | 10 */ |
11 testcase.checkInitialElements = function() { | 11 testcase.checkInitialElements = function() { |
12 var test = openSingleVideo('local', 'downloads', ENTRIES.world); | 12 var test = openSingleVideo('local', 'downloads', ENTRIES.world); |
13 return test.then(function(args) { | 13 return test.then(function(args) { |
14 var appId = args[0]; | 14 var appId = args[0]; |
15 var videoPlayer = args[1]; | 15 var videoPlayer = args[1]; |
16 return Promise.all([ | 16 return Promise.all([ |
17 remoteCallVideoPlayer.waitForElement(appId, 'html.i18n-processed'), | 17 remoteCallVideoPlayer.waitForElement(appId, 'html[i18n-processed]'), |
18 remoteCallVideoPlayer.waitForElement(appId, 'div#video-player'), | 18 remoteCallVideoPlayer.waitForElement(appId, 'div#video-player'), |
19 remoteCallVideoPlayer.waitForElement( | 19 remoteCallVideoPlayer.waitForElement( |
20 appId, '#video-container > video'), | 20 appId, '#video-container > video'), |
21 ]); | 21 ]); |
22 }); | 22 }); |
23 }; | 23 }; |
OLD | NEW |