Update web-platform-tests to revision 46aeb6c47e00b0cd3ebcab3735ec1aba7806ca79

This commit is contained in:
WPT Sync Bot 2020-01-16 08:22:41 +00:00
parent 7b6e60883f
commit 2ac52623c2
3570 changed files with 12529 additions and 11891 deletions

View file

@ -551,8 +551,11 @@ class MockRuntime {
// Mojo function implementations.
_injectAdditionalFrameData(options, frameData) {
}
// XRFrameDataProvider implementation.
getFrameData() {
getFrameData(options) {
let mojo_space_reset = this.send_mojo_space_reset_;
this.send_mojo_space_reset_ = false;
if (this.pose_) {
@ -577,18 +580,21 @@ class MockRuntime {
now += diff;
now *= 1000000;
let frameData = {
pose: this.pose_,
mojoSpaceReset: mojo_space_reset,
inputState: input_state,
timeDelta: {
microseconds: now,
},
frameId: this.next_frame_id_++,
bufferHolder: null,
bufferSize: {},
};
this._injectAdditionalFrameData(options, frameData);
return Promise.resolve({
frameData: {
pose: this.pose_,
mojoSpaceReset: mojo_space_reset,
inputState: input_state,
timeDelta: {
microseconds: now,
},
frameId: this.next_frame_id_++,
bufferHolder: null,
bufferSize: {}
}
frameData: frameData,
});
}