Bug 1526623 [wpt PR 15219] - Use XRRigidTransform based on latest webxr spec., a=testonly
authorJacob DeWitt <jacde@chromium.org>
Mon, 18 Feb 2019 19:26:29 +0000
changeset 519204 c1cec9938cb962ce86974f97bfc5e1587931e41e
parent 519203 22ba9f77d25ce999a8b2213e409697db2721e524
child 519205 7bc2cad59f4cd08b745b86ef85a12d8bb7192eac
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1526623, 15219, 916589, 1446850, 630204
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1526623 [wpt PR 15219] - Use XRRigidTransform based on latest webxr spec., a=testonly Automatic update from web-platform-tests Use XRRigidTransform based on latest webxr spec. Bug: 916589 Change-Id: I4b53d4c58fcb0b518144741153fb746c90fb435c Reviewed-on: https://chromium-review.googlesource.com/c/1446850 Commit-Queue: Jacob DeWitt <jacde@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Cr-Commit-Position: refs/heads/master@{#630204} -- wpt-commits: 0ec4da580155a16123ead11f632461e61356ffc9 wpt-pr: 15219
testing/web-platform/tests/webxr/xrSession_identity_referenceSpace.https.html
testing/web-platform/tests/webxr/xrSession_requestAnimationFrame_data_valid.https.html
testing/web-platform/tests/webxr/xrSession_requestAnimationFrame_getViewerPose.https.html
--- a/testing/web-platform/tests/webxr/xrSession_identity_referenceSpace.https.html
+++ b/testing/web-platform/tests/webxr/xrSession_identity_referenceSpace.https.html
@@ -31,17 +31,17 @@
           function onFrame(time, xrFrame) {
             session.requestAnimationFrame(onFrame);
             if (counter == 0) {
               t.step( () => {
                 // Expect to always get a pose, even if none has been supplied.
                 let pose = xrFrame.getViewerPose(referenceSpace);
                 assert_not_equals(pose, null);
 
-                let poseMatrix = pose.poseModelMatrix;
+                let poseMatrix = pose.transform.matrix;
                 assert_not_equals(poseMatrix, null);
 
                 for(let i = 0; i < poseMatrix.length; i++) {
                   assert_equals(poseMatrix[i], identityMatrix[i]);
                 }
 
                 fakeDeviceController.setXRPresentationFrameData(
                   validPoseMatrix, [{
@@ -56,17 +56,17 @@
               });
             } else {
               t.step( () => {
                 // Assert that the identity matrix is always given as the pose
                 // even when a valid pose is set by the device.
                 let pose = xrFrame.getViewerPose(referenceSpace);
                 assert_not_equals(pose, null);
 
-                let poseMatrix = pose.poseModelMatrix;
+                let poseMatrix = pose.transform.matrix;
                 assert_not_equals(poseMatrix, null);
 
                 for(let i = 0; i < poseMatrix.length; i++) {
                   assert_equals(poseMatrix[i], identityMatrix[i]);
                 }
               });
 
               // Finished.
--- a/testing/web-platform/tests/webxr/xrSession_requestAnimationFrame_data_valid.https.html
+++ b/testing/web-platform/tests/webxr/xrSession_requestAnimationFrame_data_valid.https.html
@@ -39,17 +39,17 @@
 
           function onFrame(time, xrFrame) {
             assert_true(xrFrame instanceof XRFrame);
 
             let viewerPose = xrFrame.getViewerPose(referenceSpace);
 
             assert_not_equals(viewerPose, null);
             for(let i = 0; i < identityMatrix.length; i++) {
-              assert_equals(viewerPose.poseModelMatrix[i], identityMatrix[i]);
+              assert_equals(viewerPose.transform.matrix[i], identityMatrix[i]);
             }
 
             assert_not_equals(viewerPose.views, null);
             assert_equals(viewerPose.views.length, 2);
 
             assert_not_equals(viewerPose.views[0].viewMatrix, null);
             assert_equals(viewerPose.views[0].viewMatrix.length, 16);
             assert_not_equals(viewerPose.views[1].viewMatrix, null);
--- a/testing/web-platform/tests/webxr/xrSession_requestAnimationFrame_getViewerPose.https.html
+++ b/testing/web-platform/tests/webxr/xrSession_requestAnimationFrame_getViewerPose.https.html
@@ -47,17 +47,17 @@
                 // Check that pose does not update pose within the same frame.
                 assert_equals(vrFrame.getViewerPose(referenceSpace), null);
               });
             } else {
               t.step( () => {
                 let pose = vrFrame.getViewerPose(referenceSpace);
                 assert_not_equals(pose, null);
 
-                let poseMatrix = pose.poseModelMatrix;
+                let poseMatrix = pose.transform.matrix;
                 assert_not_equals(poseMatrix, null);
 
                 for(let i = 0; i < poseMatrix.length; i++) {
                   assert_equals(poseMatrix[i], validPoseMatrix[i]);
                 }
               });
 
               // Finished.