mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Update web-platform-tests to revision 1268bd5901289acc95b1a576f108bdf382d82e44
This commit is contained in:
parent
f183d66217
commit
292a12e545
261 changed files with 5513 additions and 966 deletions
|
@ -632,9 +632,11 @@ class MockRuntime {
|
|||
}
|
||||
|
||||
runtimeSupportsSession(options) {
|
||||
|
||||
let isInlineRequest = (options.mode === device.mojom.XRSessionMode.kInline);
|
||||
return Promise.resolve({
|
||||
supportsSession:
|
||||
!options.immersive || this.displayInfo_.capabilities.canPresent
|
||||
isInlineRequest || this.displayInfo_.capabilities.canPresent
|
||||
});
|
||||
};
|
||||
}
|
||||
|
@ -830,6 +832,10 @@ class MockXRInputSource {
|
|||
|
||||
input_state.primaryInputPressed = this.primary_input_pressed_;
|
||||
input_state.primaryInputClicked = this.primary_input_clicked_;
|
||||
// Setting the input source's "clicked" state should generate one "select"
|
||||
// event. Reset the input value to prevent it from continuously generating
|
||||
// events.
|
||||
this.primary_input_clicked_ = false;
|
||||
|
||||
input_state.mojoFromInput = this.mojo_from_input_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue