| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <!-- | 2 <!-- |
| 3 Tests that requestPresent actually enters VR from Chrome's view | 3 Tests that requestPresent actually enters VR from Chrome's view |
| 4 --> | 4 --> |
| 5 <html> | 5 <html> |
| 6 <head> | 6 <head> |
| 7 <link rel="stylesheet" type="text/css" href="../resources/webvr_e2e.css"> | 7 <link rel="stylesheet" type="text/css" href="../resources/webvr_e2e.css"> |
| 8 </head> | 8 </head> |
| 9 <body> | 9 <body> |
| 10 <canvas id="webgl-canvas"></canvas> | 10 <canvas id="webgl-canvas"></canvas> |
| 11 <script src="../../../../../../third_party/WebKit/LayoutTests/resources/test
harness.js"></script> | 11 <script src="../../../../../../third_party/WebKit/LayoutTests/resources/test
harness.js"></script> |
| 12 <script src="../resources/webvr_e2e.js"></script> | 12 <script src="../resources/webvr_e2e.js"></script> |
| 13 <script src="../resources/webvr_boilerplate.js"></script> | 13 <script src="../resources/webvr_boilerplate.js"></script> |
| 14 <script> | 14 <script> |
| 15 var t = async_test("A successful requestPresent call actually enters VR"); | 15 var t = async_test("A successful requestPresent call actually enters VR"); |
| 16 window.addEventListener("onvrdisplaypresentchange", () => {t.done();}, fal
se); | 16 window.addEventListener("vrdisplaypresentchange", () => {t.done();}, false
); |
| 17 </script> | 17 </script> |
| 18 </body> | 18 </body> |
| 19 </html> | 19 </html> |
| OLD | NEW |