diff options
Diffstat (limited to 'Tools/TestWebKitAPI/Tests/WebKit2/autoplay-check-frame.html')
| -rw-r--r-- | Tools/TestWebKitAPI/Tests/WebKit2/autoplay-check-frame.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Tools/TestWebKitAPI/Tests/WebKit2/autoplay-check-frame.html b/Tools/TestWebKitAPI/Tests/WebKit2/autoplay-check-frame.html new file mode 100644 index 000000000..2c43fda1a --- /dev/null +++ b/Tools/TestWebKitAPI/Tests/WebKit2/autoplay-check-frame.html @@ -0,0 +1,16 @@ +<html> + <head> + <script> + function pageLoaded() { + document.getElementById("video").play().then(function() { + window.parent.postMessage('autoplayed', '*'); + }).catch(function() { + window.parent.postMessage('did-not-play', '*'); + }); + } + </script> + </head> + <body onload="pageLoaded()"> + <video id="video" playsinline src="test.mp4" /> + </body> +</html> |
