Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: third_party/WebKit/LayoutTests/fullscreen/full-screen-stacking-context-expected.html

Issue 1363023005: Implement FullScreen using top layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 98a5e31ad17a27b3e3fa01c0c8979a3b2376a036..203a33daa8e5bc956db6d471afbf0a1d253eee17 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,12 +1,20 @@
<!DOCTYPE html>
-<video></video>
<script>
- var runPixelTests = true;
+var runPixelTests = true;
+
+function init() {
+ waitForEventAndEnd(document, 'webkitfullscreenchange');
+ runWithKeyDown(function() {
+ document.getElementById('video').webkitRequestFullScreen();
+ });
+}
</script>
<script src="full-screen-test.js"></script>
-<script>
- document.onwebkitfullscreenchange = endTest;
- runWithKeyDown(function() {
- document.querySelector("video").webkitRequestFullScreen();
- });
-</script>
+<style>
+#video {
+ background-color: black;
+}
+</style>
+<body onload="init()">
+ <video id='video'></video>
+</body>

Powered by Google App Engine
This is Rietveld 408576698