browser_registerWindowActor.js (784B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 "use strict"; 4 5 declTest("double register", { 6 async test(_browser, _window, fileExt) { 7 Assert.throws( 8 () => 9 ChromeUtils.registerWindowActor( 10 "TestWindow", 11 windowActorOptions[fileExt] 12 ), 13 /'TestWindow' actor is already registered./, 14 "Throw if registering a window actor with the same name twice." 15 ); 16 17 Assert.throws( 18 () => 19 ChromeUtils.registerProcessActor( 20 "TestWindow", 21 windowActorOptions[fileExt] 22 ), 23 /'TestWindow' actor is already registered as a window actor./, 24 "Throw if registering a process actor with the same name as a window actor." 25 ); 26 }, 27 });