Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/media/crash-in-media-moved-to-newdocument.html |
| diff --git a/third_party/WebKit/LayoutTests/media/crash-in-media-moved-to-newdocument.html b/third_party/WebKit/LayoutTests/media/crash-in-media-moved-to-newdocument.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1621b0b0279362037e3703b53a4aa8d746932d1a |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/media/crash-in-media-moved-to-newdocument.html |
| @@ -0,0 +1,15 @@ |
| +<!DOCTYPE html> |
| +<script src="../resources/testharness.js"></script> |
| +<script src="../resources/testharnessreport.js"></script> |
| +<iframe width=400 height=300></iframe> |
| +<script> |
| +async_test((t) => { |
| + var video = document.createElement('video'); |
| + video.src = 'nosuchurl'; |
| + video.play().then(t.unreached_func() |
| + ).catch(t.done(function() { |
|
foolip
2017/01/18 10:46:43
This should be t.step_func_done, t.done() will end
|
| + assert_true(video.paused); |
| + })); |
| + window.frames[0].document.body.appendChild(video); |
| +}, "Test for crbug/676004: Crash in blink::beforeCallEnteredCallback()"); |
| +</script> |