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

Side by Side 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: Simplify Javascript code slightly 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <!--
3 Tests that scanning the Daydream View NFC tag on supported devices fires the
4 ondisplayactivate event
5 -->
6 <html>
7 <head>
8 <style>
Lei Lei 2017/02/16 22:04:49 You can put those CSS code in a css file and inclu
bsheedy 2017/02/16 23:30:13 Done.
9 html, body {
10 margin: 0;
11 padding: 0;
12 width: 100%;
13 height: 100%;
14 }
15 #webgl-canvas {
16 box-sizing: border-box;
17 height: 100%;
18 left: 0;
19 margin: 0;
20 position: absolute;
21 top: 0;
22 width: 100%;
23 }
24 #log {
25 display: none;
26 }
27 </style>
28 </head>
29 <body>
30 <canvas id="webgl-canvas"></canvas>
31 <script src="../../../../../../third_party/WebKit/LayoutTests/resources/test harness.js"></script>
32 <script src="../resources/webvr_e2e.js"></script>
33 <script src="../resources/webvr_boilerplate.js"></script>
Lei Lei 2017/02/16 22:04:49 I think you can remove this file in this test case
bsheedy 2017/02/16 23:30:13 Done.
34 <script>
35 // Don't need to actually present for this test, so remove the listener
36 window.removeEventListener("vrdisplayactivate", onVrRequestPresent);
37
38 var t = async_test("NFC scan fires the vrdisplayactivate event");
39 window.addEventListener("vrdisplayactivate", () => {t.done();}, false);
40 // NFC scan triggered after page load
41 </script>
42 </body>
43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698