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

Unified Diff: chrome/test/data/android/webvr_instrumentation/html/test_nfc_fires_onvrdisplayactivate.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_nfc_fires_onvrdisplayactivate.html
diff --git a/chrome/test/data/android/webvr_instrumentation/html/test_nfc_fires_onvrdisplayactivate.html b/chrome/test/data/android/webvr_instrumentation/html/test_nfc_fires_onvrdisplayactivate.html
new file mode 100644
index 0000000000000000000000000000000000000000..4afac65680c79fb444b002e63660122986ad7575
--- /dev/null
+++ b/chrome/test/data/android/webvr_instrumentation/html/test_nfc_fires_onvrdisplayactivate.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<!--
+Tests that scanning the Daydream View NFC tag on supported devices fires the
+ondisplayactivate event
+-->
+<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>
+ var t = async_test("NFC scan fires the vrdisplayactivate event");
+ window.addEventListener("vrdisplayactivate", () => {t.done();}, false);
+ // NFC scan triggered after page load
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698