| Index: third_party/WebKit/LayoutTests/external/wpt/webvtt/rendering/cues-with-video/processing-model/dom_override_remove_cue_while_paused.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/webvtt/rendering/cues-with-video/processing-model/dom_override_remove_cue_while_paused.html b/third_party/WebKit/LayoutTests/external/wpt/webvtt/rendering/cues-with-video/processing-model/dom_override_remove_cue_while_paused.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..37481086d745ba748d03de80cbc8df57fb17ee8b
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/webvtt/rendering/cues-with-video/processing-model/dom_override_remove_cue_while_paused.html
|
| @@ -0,0 +1,30 @@
|
| +<!DOCTYPE html>
|
| +<html class="reftest-wait">
|
| +<title>WebVTT rendering, cue text should be removed when removing them using the DOM APIs while paused</title>
|
| +<link rel="match" href="dom_override_remove_cue_while_paused-ref.html">
|
| +<style>
|
| +html { overflow:hidden }
|
| +body { margin:0 }
|
| +::cue {
|
| + font-family: Ahem, sans-serif;
|
| + color: green
|
| +}
|
| +</style>
|
| +<script src="/common/reftest-wait.js"></script>
|
| +<script>
|
| + function updateCue() {
|
| + var t = document.getElementById('track');
|
| + var c = t.track.cues[0];
|
| + t.track.removeCue(c);
|
| + takeScreenshot();
|
| + }
|
| +</script>
|
| +<video id="video" width="1280" height="720" autoplay onplaying="this.onplaying = null; this.pause(); updateCue();">
|
| + <source src="/media/white.webm" type="video/webm">
|
| + <source src="/media/white.mp4" type="video/mp4">
|
| + <track id="track" src="support/test.vtt">
|
| +</video>
|
| +<script>
|
| +document.getElementsByTagName('track')[0].track.mode = 'showing';
|
| +</script>
|
| +</html>
|
|
|