summaryrefslogtreecommitdiffstats
path: root/ui/file_manager/video_player/js/test_util.js
diff options
context:
space:
mode:
authorryoh <ryoh@chromium.org>2016-03-15 22:24:31 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-16 05:26:25 +0000
commit9b39fa15a01e930a8ff2a5a53a2fd13c73482bb9 (patch)
tree7665a10bb586b25fbed70b3d521ad4cca74a8e7a /ui/file_manager/video_player/js/test_util.js
parent255085eb35b87a38640b0668974cb4ace68a66db (diff)
downloadchromium_src-9b39fa15a01e930a8ff2a5a53a2fd13c73482bb9.zip
chromium_src-9b39fa15a01e930a8ff2a5a53a2fd13c73482bb9.tar.gz
chromium_src-9b39fa15a01e930a8ff2a5a53a2fd13c73482bb9.tar.bz2
Add subtitles track if there is a subtitles file with the same name.
BUG=585723 TEST=manually Review URL: https://codereview.chromium.org/1782363003 Cr-Commit-Position: refs/heads/master@{#381395}
Diffstat (limited to 'ui/file_manager/video_player/js/test_util.js')
-rw-r--r--ui/file_manager/video_player/js/test_util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/file_manager/video_player/js/test_util.js b/ui/file_manager/video_player/js/test_util.js
index 2415cd6..9e5d019 100644
--- a/ui/file_manager/video_player/js/test_util.js
+++ b/ui/file_manager/video_player/js/test_util.js
@@ -14,7 +14,7 @@ function testElement(filename, testFunction) {
var contentWindow = window.background.appWindows[appId].contentWindow;
if (contentWindow &&
contentWindow.document.title === filename) {
- var element = contentWindow.document.querySelector('video[src]');
+ var element = contentWindow.document.querySelector('video');
if (element && testFunction(element))
return true;
}