Bug 1355648 - Part 3: Set position and orientation IsValid properties for GamepadPose tests; r=kip

MozReview-Commit-ID: 29sjo3yhg98

--HG--
extra : rebase_source : afb483713a3e895d81e20d4d8dc3861679f1781e
This commit is contained in:
Daosheng Mu 2017-04-26 13:17:25 +08:00
Родитель df7c980c42
Коммит 3a6ad95915
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -260,6 +260,7 @@ GamepadServiceTest::NewPoseMove(uint32_t aIndex,
poseState.orientation[1] = value.Data()[1];
poseState.orientation[2] = value.Data()[2];
poseState.orientation[3] = value.Data()[3];
poseState.isOrientationValid = true;
}
if (!aPos.IsNull()) {
const Float32Array& value = aPos.Value();
@ -268,6 +269,7 @@ GamepadServiceTest::NewPoseMove(uint32_t aIndex,
poseState.position[0] = value.Data()[0];
poseState.position[1] = value.Data()[1];
poseState.position[2] = value.Data()[2];
poseState.isPositionValid = true;
}
if (!aAngVelocity.IsNull()) {
const Float32Array& value = aAngVelocity.Value();

Просмотреть файл

@ -212,6 +212,7 @@ VRMockController::NewPoseMove(const Nullable<Float32Array>& aPosition,
poseState.orientation[1] = value.Data()[1];
poseState.orientation[2] = value.Data()[2];
poseState.orientation[3] = value.Data()[3];
poseState.isOrientationValid = true;
}
if (!aPosition.IsNull()) {
const Float32Array& value = aPosition.Value();
@ -220,6 +221,7 @@ VRMockController::NewPoseMove(const Nullable<Float32Array>& aPosition,
poseState.position[0] = value.Data()[0];
poseState.position[1] = value.Data()[1];
poseState.position[2] = value.Data()[2];
poseState.isPositionValid = true;
}
if (!aAngularVelocity.IsNull()) {
const Float32Array& value = aAngularVelocity.Value();