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

Side by Side Diff: third_party/WebKit/LayoutTests/vr/resources/fake-vr-displays.js

Issue 2599113002: Add the first layout tests for WebVR to test navigator.getVRDisplays with mocked vr_service mojo in… (Closed)
Patch Set: Created 4 years 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 'use strict';
2
3 function fakeVRDisplays(){
4 return [{
5 index : 0,
6 displayName : "FakeVRDevice",
7 capabilities : {
8 hasOrientation : true,
9 hasPosition : false,
10 hasExternalDisplay : false,
11 canPresent : false,
12 },
13 stageParameters : null,
14 leftEye : {
15 fieldOfView : {
16 upDegrees : 45,
17 downDegrees : 45,
18 leftDegrees : 45,
19 rightDegrees : 45,
20 },
21 offset : [
22 -0.03, 0, 0
23 ],
24 renderWidth : 1024,
25 renderHeight : 1024,
26 },
27 rightEye : {
28 fieldOfView : {
29 upDegrees : 45,
30 downDegrees : 45,
31 leftDegrees : 45,
32 rightDegrees : 45,
33 },
34 offset : [
35 0.03, 0, 0
36 ],
37 renderWidth : 1024,
38 renderHeigth : 1024,
39 }
40 }];
41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698