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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Test that moving video element to a new document and performing an operat ion on it doesn't crash.</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script src="media-file.js"></script>
6 <script>
7 async_test(function(t) {
8 var v = document.createElement('video');
9 v.src = findMediaFile('video', 'content/test');
10 v.oncanplaythrough = t.step_func(function() {
11 var newDoc = document.implementation.createDocument( "", null);
12 newDoc.adoptNode(v);
13 // Performing seek operation on the video element after moving
14 // it to a new document should not crash.
15 v.currentTime = 1.25;
16 t.done();
17 });
18 });
19 </script>
OLDNEW
« 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