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

Side by Side 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, 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
« no previous file with comments | « third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // assert_equals can fail when comparing floats due to precision errors, so 1 // assert_equals can fail when comparing floats due to precision errors, so
2 // use assert_approx_equals with this constant instead 2 // use assert_approx_equals with this constant instead
3 var FLOAT_EPSILON = 0.0000001; 3 var FLOAT_EPSILON = 0.0000001;
4
5 // A valid VRPose for when we don't care about specific values
6 var VALID_POSE = {
7 position: [1.1, 2.2, 3.3],
8 linearVelocity: [0.1, 0.2, 0.3],
9 linearAcceleration: [0.0, 0.1, 0.2],
10 orientation: [0.1, 0.2, 0.3, 0.4],
11 angularVelocity: [1.1, 2.1, 3.1],
12 angularAcceleration: [1.0, 2.0, 3.0]
13 }
OLDNEW
« 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