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

Unified Diff: LayoutTests/media/track/media-element-move-to-new-document-assert.html

Issue 1233313008: Stop calling configureTextTrackDisplay() in clearMediaPlayer() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: proper test Created 5 years, 5 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/media-element-move-to-new-document-assert-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/track/media-element-move-to-new-document-assert.html
diff --git a/LayoutTests/media/track/media-element-move-to-new-document-assert.html b/LayoutTests/media/track/media-element-move-to-new-document-assert.html
new file mode 100644
index 0000000000000000000000000000000000000000..ccaa218c43255b7d966b5148228fdc497e6b1795
--- /dev/null
+++ b/LayoutTests/media/track/media-element-move-to-new-document-assert.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<p>Test for failing EventDispatchForbiddenScope assert when moving a
+video with text track between documents.</p>
+<video></video>
+<iframe></iframe>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+var video = document.querySelector("video");
+var track = document.createElement("track");
+
+// Note: The order of setting the text track mode and appending the
+// track element is important, in terms of implementation and spec:
+// https://www.w3.org/Bugs/Public/show_bug.cgi?id=28973
+track.track.mode = "showing";
+video.appendChild(track);
+
+// Move the video element to another document.
+var iframe = document.querySelector("iframe");
+iframe.contentDocument.body.appendChild(video);
+</script>
« no previous file with comments | « no previous file | LayoutTests/media/track/media-element-move-to-new-document-assert-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698