Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions webxr/xrFrame_getViewerPose_getPose_identities.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@
}

const testFunction = function(session, fakeDeviceController, t) {
// Verify that setting viewerOrigin to null throws TypeError per spec.
t.step(() => {
assert_throws_js(TypeError, () => {
// fakeDeviceController is supplied to the test and should expose the method
// that the implementation uses to set the viewer origin. If the API name
// differs, adapt this call accordingly.
fakeDeviceController.setViewerOrigin(null);
}, "fakeDeviceController.setViewerOrigin(null) should throw TypeError");
});

return Promise.all([
session.requestReferenceSpace('local'),
session.requestReferenceSpace('viewer'),
Expand Down