Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/ipc/tests/JSWindowActor/browser.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
declTest("double register", {
async test(_browser, _window, fileExt) {
Assert.throws(
() =>
ChromeUtils.registerWindowActor(
"TestWindow",
windowActorOptions[fileExt]
),
/'TestWindow' actor is already registered./,
"Throw if registering a window actor with the same name twice."
);
Assert.throws(
() =>
ChromeUtils.registerProcessActor(
"TestWindow",
windowActorOptions[fileExt]
),
/'TestWindow' actor is already registered as a window actor./,
"Throw if registering a process actor with the same name as a window actor."
);
},
});