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

Unified Diff: chrome/test/data/android/webvr_instrumentation/resources/navigation_e2e.js

Issue 2851313002: Adds end-to-end tests for VrShell navigation transitions. (Closed)
Patch Set: Rebased on ToT, incorporated review feedback 3 Created 3 years, 8 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 | « chrome/test/data/android/webvr_instrumentation/html/test_navigation_webvr_page.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/android/webvr_instrumentation/resources/navigation_e2e.js
diff --git a/chrome/test/data/android/webvr_instrumentation/resources/navigation_e2e.js b/chrome/test/data/android/webvr_instrumentation/resources/navigation_e2e.js
new file mode 100644
index 0000000000000000000000000000000000000000..3282451282a0a897fd631fdb2948e52a3999f31a
--- /dev/null
+++ b/chrome/test/data/android/webvr_instrumentation/resources/navigation_e2e.js
@@ -0,0 +1,16 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+function setFullscreen(checkbox) {
+ if (checkbox.checked) {
+ document.body.webkitRequestFullScreen();
+ } else {
+ document.webkitCancelFullScreen();
+ }
+}
+function onFullscreenChange() {
+ finishJavaScriptStep();
+}
+document.addEventListener('webkitfullscreenchange', onFullscreenChange, false);
+window.addEventListener('load', finishJavaScriptStep, false);
« no previous file with comments | « chrome/test/data/android/webvr_instrumentation/html/test_navigation_webvr_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698