Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /webmcp/imperative/unregister_invalid_tool.https.window.html - WPT Dashboard Interop Dashboard
'use strict';
test(() => {
assert_throws_dom(
'InvalidStateError',
() => {
navigator.modelContext.unregisterTool('empty');
},
"unregisterTool which doesn't exist",
);
}, "unregisterTool which doesn't exist");