Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: LayoutTests/media/track/track-in-band-legacy-api.html

Issue 26759003: Remove HTMLMediaElement.webkitHasClosedCaptions/webkitClosedCaptionsVisible (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase to resolve conflicts Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/media/track/track-in-band-legacy-api-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/track/track-in-band-legacy-api.html
diff --git a/LayoutTests/media/track/track-in-band-legacy-api.html b/LayoutTests/media/track/track-in-band-legacy-api.html
deleted file mode 100644
index 9d86a9e922583de12846de0a72b149183731af74..0000000000000000000000000000000000000000
--- a/LayoutTests/media/track/track-in-band-legacy-api.html
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>In-band tracks enabled/disabled with legacy API</title>
-
- <script src=../media-file.js></script>
- <script src=../video-test.js></script>
- <script src=../media-controls.js></script>
- <script>
-
- function seeked()
- {
- consoleWrite("<br><i>** Test to make sure captions are displaying<" + "/i>");
-
- testExpected("inbandTrack1.cues", null, '!=');
- testExpected("textTrackDisplayElement(video, 'cue').textContent", null, '!=');
-
- consoleWrite("<br><i>** Disable captions, cues should be flushed<" + "/i>");
- run("video.webkitClosedCaptionsVisible = false");
- testExpected("inbandTrack1.cues", null);
-
- consoleWrite("");
- endTest();
- }
-
- function canplaythrough()
- {
- consoleWrite("<br><i>** Check initial in-band track states<" + "/i>");
- testExpected("video.textTracks.length", 1);
- run("inbandTrack1 = video.textTracks[0]");
- testExpected("inbandTrack1.mode", "disabled");
- testExpected("inbandTrack1.cues", null);
- testExpected("inbandTrack1.language", "en");
- testExpected("inbandTrack1.kind", "captions");
-
- consoleWrite("<br><i>** Enable cues and let them load<" + "/i>");
- run("video.webkitClosedCaptionsVisible = true");
- run("video.play()");
- setTimeout(function() { video.pause(); video.currentTime = 0.3; }, 1000);
- }
-
- function setup()
- {
- findMediaElement();
- video.src = '../content/counting-captioned.mov';
- waitForEvent('seeked', seeked);
- waitForEvent('canplaythrough', canplaythrough);
- }
-
- </script>
- </head>
- <body onload="setup()">
- <video controls></video>
- <p>Test that in-band tracks work with .webkitClosedCaptionsVisible.</p>
- </body>
-</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/media/track/track-in-band-legacy-api-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698