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

Unified Diff: android_webview/test/shell/assets/visual_state_during_fullscreen_test.html

Issue 941713002: [WebView] Tests for visual state during fullscreen transitions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@breakSwapIfNoUpdates
Patch Set: Created 5 years, 10 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
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/util/GraphicsTestUtils.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/test/shell/assets/visual_state_during_fullscreen_test.html
diff --git a/android_webview/test/shell/assets/visual_state_during_fullscreen_test.html b/android_webview/test/shell/assets/visual_state_during_fullscreen_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..cf1fed08d40a05211917424632e9400cd4252d48
--- /dev/null
+++ b/android_webview/test/shell/assets/visual_state_during_fullscreen_test.html
@@ -0,0 +1,33 @@
+<html>
+<head>
+<script>
+ function enterFullscreen() {
+ var div = document.getElementById("mydiv");
+ div.webkitRequestFullScreen();
+ div.addEventListener("webkitfullscreenchange", function(){
+ div.style.height = "100%";
+ div.style.width = "100%";
+ div.style.backgroundColor = "red";
+ jsObserver.notifyJava();
+ });
+ }
+</script>
+<style>
+ body {
+ margin: 0px;
+ padding: 0px;
+ }
+ #enterFullscreenControl {
+ height: 100%;
+ width: 100%;
+ padding: 0px 0px;
+ background-color: blue;
+ }
+</style>
+</head>
+<body>
+<button id="enterFullscreenControl" autofocus onclick="enterFullscreen(); return false">
+<div id="mydiv"></div>
+</button>
+</body>
+</html>
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/util/GraphicsTestUtils.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698