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

Unified Diff: third_party/WebKit/LayoutTests/vr/resources/test-constants.js

Issue 2659853006: Add getFrameData and getPose layout tests (Closed)
Patch Set: Add more tests Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/vr/resources/test-constants.js
diff --git a/third_party/WebKit/LayoutTests/vr/resources/test-constants.js b/third_party/WebKit/LayoutTests/vr/resources/test-constants.js
index 523cd4457f5781b524974c1922cfeff7e18b9aea..c285aea4e2a4d833114db6c9c564f9b5c43ea266 100644
--- a/third_party/WebKit/LayoutTests/vr/resources/test-constants.js
+++ b/third_party/WebKit/LayoutTests/vr/resources/test-constants.js
@@ -1,3 +1,13 @@
// assert_equals can fail when comparing floats due to precision errors, so
// use assert_approx_equals with this constant instead
var FLOAT_EPSILON = 0.0000001;
+
+// A valid VRPose for when we don't care about specific values
+var VALID_POSE = {
+ position: [1.1, 2.2, 3.3],
+ linearVelocity: [0.1, 0.2, 0.3],
+ linearAcceleration: [0.0, 0.1, 0.2],
+ orientation: [0.1, 0.2, 0.3, 0.4],
+ angularVelocity: [1.1, 2.1, 3.1],
+ angularAcceleration: [1.0, 2.0, 3.0]
+}
« no previous file with comments | « third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698