commit 8993280b56269d8968ea52086118dd6760058798
parent f41a8d096340987c2d6256c45dcac3bd2324436a
Author: prasanth-30011 <prasanthreddypadala121@gmail.com>
Date: Thu, 6 Nov 2025 21:36:49 +0000
Bug 1997799 [wpt PR 55819] - test(webxr): ensure setViewerOrigin(null) throws TypeError, a=testonly
Automatic update from web-platform-tests
test(webxr): ensure setViewerOrigin(null) throws TypeError (#55819)
--
wpt-commits: 7869fb6774cef491abf2b74c66c9d3637b6d96d6
wpt-pr: 55819
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/webxr/xrFrame_getViewerPose_getPose_identities.https.html b/testing/web-platform/tests/webxr/xrFrame_getViewerPose_getPose_identities.https.html
@@ -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'),