| 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>
|
|
|