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

Unified Diff: chrome/test/data/android/webvr_instrumentation/html/test_requestPresent_enters_vr.html

Issue 2588703003: Add WebVR WebVR E2E test capabilities via Android instrumentation (Closed)
Patch Set: Fix copyright header Created 3 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
Index: chrome/test/data/android/webvr_instrumentation/html/test_requestPresent_enters_vr.html
diff --git a/chrome/test/data/android/webvr_instrumentation/html/test_requestPresent_enters_vr.html b/chrome/test/data/android/webvr_instrumentation/html/test_requestPresent_enters_vr.html
new file mode 100644
index 0000000000000000000000000000000000000000..059ff7217d606192d382676b4feb34aa6e70c99b
--- /dev/null
+++ b/chrome/test/data/android/webvr_instrumentation/html/test_requestPresent_enters_vr.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<!--
+Tests that requestPresent actually enters VR from Chrome's view
+-->
+<html>
+ <head>
+ <link rel="stylesheet" type="text/css" href="../resources/webvr_e2e.css">
+ </head>
+ <body>
+ <canvas id="webgl-canvas"></canvas>
+ <script src="../../../../../../third_party/WebKit/LayoutTests/resources/testharness.js"></script>
+ <script src="../resources/webvr_e2e.js"></script>
+ <script src="../resources/webvr_boilerplate.js"></script>
+ <script>
+ var t = async_test("A successful requestPresent call actually enters VR");
+ window.addEventListener("onvrdisplaypresentchange", () => {t.done();}, false);
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698