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

Unified Diff: third_party/WebKit/LayoutTests/media/video-move-to-new-document-crash.html

Issue 1406183003: Reset readystates when webmediaplayer is cleared (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update as per review Created 5 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 | « no previous file | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/video-move-to-new-document-crash.html
diff --git a/third_party/WebKit/LayoutTests/media/video-move-to-new-document-crash.html b/third_party/WebKit/LayoutTests/media/video-move-to-new-document-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..cba59dc136c351a9311c92abcd9800ef81ff10e7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/video-move-to-new-document-crash.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<title>Test that moving video element to a new document and performing an operation on it doesn't crash.</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="media-file.js"></script>
+<script>
+async_test(function(t) {
+ var v = document.createElement('video');
+ v.src = findMediaFile('video', 'content/test');
+ v.oncanplaythrough = t.step_func(function() {
+ var newDoc = document.implementation.createDocument( "", null);
+ newDoc.adoptNode(v);
+ // Performing seek operation on the video element after moving
+ // it to a new document should not crash.
+ v.currentTime = 1.25;
+ t.done();
+ });
+});
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698