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

Unified Diff: LayoutTests/media/resources/track-dispose-inner.html

Issue 1291063002: Test for issue 516298 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use qS. Created 5 years, 4 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 | « no previous file | LayoutTests/media/track/track-dispose.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/resources/track-dispose-inner.html
diff --git a/LayoutTests/media/resources/track-dispose-inner.html b/LayoutTests/media/resources/track-dispose-inner.html
new file mode 100644
index 0000000000000000000000000000000000000000..0f523914fce58f460412c263fdb3d384c9d5334d
--- /dev/null
+++ b/LayoutTests/media/resources/track-dispose-inner.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<video src='../content/test.ogv'>
+ <track kind='metadata' src='../track/captions-webvtt/metadata.vtt' onload='loaded1()'>
+</video>
+<script>
+video = document.querySelector('video');
+video.addEventListener('canplaythrough', function() {
+ track1.track.mode = 'hidden';
+});
+track1 = document.querySelectorAll('track')[0];
+function loaded2() {
+ parent.postMessage('kill', '*');
+}
+function loaded1() {
+ track2 = document.createElement('track');
+ track2.setAttribute('kind', 'metadata');
+ track2.setAttribute('default', 'default');
+ track2.setAttribute('onload', 'loaded2()');
+ track2.setAttribute('src', '../track/captions-webvtt/metadata.vtt');
+ video.appendChild(track2);
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/media/track/track-dispose.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698