Index: third_party/WebKit/LayoutTests/media/autoplay-clears-autoplay-flag.html |
diff --git a/third_party/WebKit/LayoutTests/media/autoplay-clears-autoplay-flag.html b/third_party/WebKit/LayoutTests/media/autoplay-clears-autoplay-flag.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c19aa3eee1602e55f0c7e0e29d111a55b3994fe3 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/media/autoplay-clears-autoplay-flag.html |
@@ -0,0 +1,25 @@ |
+<!doctype html> |
+<title>autoplay-clears-autoplay-flag</title> |
philipj_slow
2015/12/02 09:50:14
Please make the title human readable, perhaps "aut
liberato (no reviews please)
2015/12/02 15:35:11
done, and renamed test to autoplay-clears-autoplay
|
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script src="media-file.js"></script> |
+<div id="log"></div> |
+<script> |
+async_test(function(t) |
+{ |
+ var e = document.createElement('audio'); |
philipj_slow
2015/12/02 09:50:14
You can call it `a` to `audio`, it was previously
liberato (no reviews please)
2015/12/02 15:35:11
i will hang this comment up on my wall. done.
|
+ e.src = 'data:audio/wav;base64,UklGRjQAAABXQVZFZm10IBAAAAABAAEAQB8AAIA+AAACABAAZGF0YRAAAAAAAAAA//8CAP3/BAD7/wQA'; |
+ e.autoplay = true; |
+ e.addEventListener('ended', function() |
+ { |
+ e.currentTime = 0; |
+ }); |
+ e.addEventListener('seeked', t.step_func(function() |
+ { |
+ assert_true(e.paused); |
+ assert_true(e.readyState == e.HAVE_ENOUGH_DATA); |
+ t.done(); |
+ })); |
+ document.body.appendChild(e); |
+}, 'audio.autoplay-clears-autoplay-flag'); |
philipj_slow
2015/12/02 09:50:14
When there's just one test in a file, with testhar
liberato (no reviews please)
2015/12/02 15:35:11
Done.
|
+</script> |