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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/vr/resources/fake-vr-displays.js
diff --git a/third_party/WebKit/LayoutTests/vr/resources/fake-vr-displays.js b/third_party/WebKit/LayoutTests/vr/resources/fake-vr-displays.js
new file mode 100644
index 0000000000000000000000000000000000000000..2e50caaa21118e00ab0fed8205a4dc6988566ecc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/vr/resources/fake-vr-displays.js
@@ -0,0 +1,41 @@
+'use strict';
+
+function fakeVRDisplays(){
+ return [{
+ index : 0,
+ displayName : "FakeVRDevice",
+ capabilities : {
+ hasOrientation : true,
+ hasPosition : false,
+ hasExternalDisplay : false,
+ canPresent : false,
+ },
+ stageParameters : null,
+ leftEye : {
+ fieldOfView : {
+ upDegrees : 45,
+ downDegrees : 45,
+ leftDegrees : 45,
+ rightDegrees : 45,
+ },
+ offset : [
+ -0.03, 0, 0
+ ],
+ renderWidth : 1024,
+ renderHeight : 1024,
+ },
+ rightEye : {
+ fieldOfView : {
+ upDegrees : 45,
+ downDegrees : 45,
+ leftDegrees : 45,
+ rightDegrees : 45,
+ },
+ offset : [
+ 0.03, 0, 0
+ ],
+ renderWidth : 1024,
+ renderHeigth : 1024,
+ }
+}];
+}

Powered by Google App Engine
This is Rietveld 408576698