Index: third_party/WebKit/LayoutTests/fullscreen/full-screen-stacking-context-expected.html |
diff --git a/third_party/WebKit/LayoutTests/fullscreen/full-screen-stacking-context-expected.html b/third_party/WebKit/LayoutTests/fullscreen/full-screen-stacking-context-expected.html |
index 203a33daa8e5bc956db6d471afbf0a1d253eee17..98a5e31ad17a27b3e3fa01c0c8979a3b2376a036 100644 |
--- a/third_party/WebKit/LayoutTests/fullscreen/full-screen-stacking-context-expected.html |
+++ b/third_party/WebKit/LayoutTests/fullscreen/full-screen-stacking-context-expected.html |
@@ -1,20 +1,12 @@ |
<!DOCTYPE html> |
+<video></video> |
<script> |
-var runPixelTests = true; |
- |
-function init() { |
- waitForEventAndEnd(document, 'webkitfullscreenchange'); |
- runWithKeyDown(function() { |
- document.getElementById('video').webkitRequestFullScreen(); |
- }); |
-} |
+ var runPixelTests = true; |
</script> |
<script src="full-screen-test.js"></script> |
-<style> |
-#video { |
- background-color: black; |
-} |
-</style> |
-<body onload="init()"> |
- <video id='video'></video> |
-</body> |
+<script> |
+ document.onwebkitfullscreenchange = endTest; |
+ runWithKeyDown(function() { |
+ document.querySelector("video").webkitRequestFullScreen(); |
+ }); |
+</script> |