aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/resources/chromium/webxr-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/resources/chromium/webxr-test.js')
-rw-r--r--tests/wpt/web-platform-tests/resources/chromium/webxr-test.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/wpt/web-platform-tests/resources/chromium/webxr-test.js b/tests/wpt/web-platform-tests/resources/chromium/webxr-test.js
index 43857bdc695..19b207ff428 100644
--- a/tests/wpt/web-platform-tests/resources/chromium/webxr-test.js
+++ b/tests/wpt/web-platform-tests/resources/chromium/webxr-test.js
@@ -554,6 +554,7 @@ class MockXRInputSource {
this.handedness_ = fakeInputSourceInit.handedness;
this.target_ray_mode_ = fakeInputSourceInit.targetRayMode;
this.setPointerOrigin(fakeInputSourceInit.pointerOrigin);
+ this.setProfiles(fakeInputSourceInit.profiles);
this.primary_input_pressed_ = false;
if (fakeInputSourceInit.selectionStarted != null) {
@@ -593,7 +594,8 @@ class MockXRInputSource {
}
setProfiles(profiles) {
- // Profiles are not yet implemented by chromium
+ this.desc_dirty_ = true;
+ this.profiles_ = profiles;
}
setGripOrigin(transform, emulatedPosition = false) {
@@ -762,6 +764,8 @@ class MockXRInputSource {
input_desc.pointerOffset = this.pointer_offset_;
+ input_desc.profiles = this.profiles_;
+
input_state.description = input_desc;
this.desc_dirty_ = false;