Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/media/play-promise-crash.html |
| diff --git a/third_party/WebKit/LayoutTests/media/play-promise-crash.html b/third_party/WebKit/LayoutTests/media/play-promise-crash.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6b03c29c6c8da2daf3544d76f0fe4860f1c81592 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/media/play-promise-crash.html |
| @@ -0,0 +1,25 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| +<title>Crash test for play() promise</title> |
| +</head> |
| +<body> |
| +<script src="../resources/testharness.js"></script> |
| +<script src="../resources/testharnessreport.js"></script> |
| +<script src="media-file.js"></script> |
| +<script> |
| + window.internals.settings.setMediaPlaybackRequiresUserGesture(true); |
| + |
| + async_test(function(t) { |
| + var video = document.createElement('video'); |
| + video.src = findMediaFile('video', 'content/test'); |
| + video.play().then(t.step_func_done(function() { |
| + assert_unreached(); |
| + }), t.step_func(function() { |
| + gc(); |
|
whywhat
2016/06/09 19:48:27
nit: add a comment of what this test actually chec
|
| + t.done(); |
| + })); |
| + }); |
|
whywhat
2016/06/09 19:48:27
nit: give a name to the test?
|
| +</script> |
| +</body> |
| +</html> |