Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fullscreen/full-screen-video-has-backdrop.html |
| diff --git a/third_party/WebKit/LayoutTests/fullscreen/full-screen-video-has-backdrop.html b/third_party/WebKit/LayoutTests/fullscreen/full-screen-video-has-backdrop.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0aee1574927a03b70bb141573b3a720e68d363e3 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fullscreen/full-screen-video-has-backdrop.html |
| @@ -0,0 +1,44 @@ |
| +<!doctype html> |
| +<style> |
| +#wrapper { |
| + display: flex; |
| + justify-content: center; |
| +} |
| + |
| +::backdrop { |
| + background: green; |
| +} |
| +</style> |
| + |
| +<script> |
| +function goFullscreen() { |
| + document.getElementById('wrapper').webkitRequestFullscreen(); |
| +} |
| +</script> |
| + |
| +<p>Test that fullscreen object elements get a ::backdrop. You should see a green background when the object element is fullscreen.</p> |
| + |
| +<div id='wrapper'> |
| + <object type="application/x-shockwave-flash" data="../plugins/resources/simple_blank.swf" width="100" height="100" id='object'></object> |
| +</div> |
| + |
| +<button id='button' onclick='goFullscreen()'>Go fullscreen</button> |
| + |
| +<script> |
| +if (window.testRunner) { |
| + testRunner.waitUntilDone(); |
| + document.addEventListener('webkitfullscreenchange', function() { |
| + testRunner.notifyDone(); |
| + }); |
| + |
| + function thunk() { |
| + document.removeEventListener("keypress", thunk, false); |
|
esprehn
2015/10/09 10:33:59
ditto
dsinclair
2015/10/13 15:50:43
Done.
|
| + goFullscreen(); |
| + } |
| + document.addEventListener("keypress", thunk, false); |
|
esprehn
2015/10/09 10:33:59
false is the default for addEventListener, you don
dsinclair
2015/10/13 15:50:43
Done.
|
| + if (window.eventSender) |
| + eventSender.keyDown(" ", []); |
| + |
| + testRunner.notifyDone(); |
| +} |
| +</script> |