| Index: third_party/WebKit/LayoutTests/media/audio-controls-captions.html
|
| diff --git a/third_party/WebKit/LayoutTests/media/audio-controls-captions.html b/third_party/WebKit/LayoutTests/media/audio-controls-captions.html
|
| index a3f5c874edb5bccae4ed2639a9abe0466c3ba6fd..cdfd5e3d3689813ebea6ca7edf6be043e95f716e 100644
|
| --- a/third_party/WebKit/LayoutTests/media/audio-controls-captions.html
|
| +++ b/third_party/WebKit/LayoutTests/media/audio-controls-captions.html
|
| @@ -1,27 +1,18 @@
|
| <!DOCTYPE html>
|
| -<html>
|
| -<head>
|
| - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
| - <title>Test closed caption button visbility.</title>
|
| - <script src=media-file.js></script>
|
| - <script src=media-controls.js></script>
|
| - <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
|
| - (Please avoid writing new tests using video-test.js) -->
|
| - <script src=video-test.js></script>
|
| -</head>
|
| -<body>
|
| - <p>Tests that the closed captions button is not visible.</p>
|
| - <audio controls>
|
| - <track src="track/captions-webvtt/captions-fast.vtt">
|
| - </audio>
|
| - <script>
|
| - findMediaElement();
|
| - audio.src = findMediaFile('audio', 'content/test');
|
| - audio.addEventListener('loadedmetadata', function()
|
| - {
|
| - testClosedCaptionsButtonVisibility(false);
|
| - endTest();
|
| - });
|
| - </script>
|
| -</body>
|
| -</html>
|
| +<title>Tests that the closed captions button is not visible.</title>
|
| +<script src="media-file.js"></script>
|
| +<script src="media-controls.js"></script>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<audio controls>
|
| + <track src="track/captions-webvtt/captions-fast.vtt" default>
|
| +</audio>
|
| +<script>
|
| +async_test(function(t) {
|
| + var audio = document.querySelector('audio');
|
| + audio.src = findMediaFile('audio', 'content/test');
|
| + audio.onloadedmetadata = t.step_func_done(function() {
|
| + assert_false(isClosedCaptionsButtonVisible(audio));
|
| + });
|
| +});
|
| +</script>
|
|
|