Update web-platform-tests to revision 1268bd5901289acc95b1a576f108bdf382d82e44

This commit is contained in:
WPT Sync Bot 2019-12-19 08:23:25 +00:00
parent f183d66217
commit 292a12e545
261 changed files with 5513 additions and 966 deletions

View file

@ -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_;