OLD | NEW |
(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> |
OLD | NEW |