browser_registerProcessActor.js (812B)
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.registerProcessActor( 10 "TestProcessActor", 11 processActorOptions[fileExt] 12 ), 13 /'TestProcessActor' actor is already registered./, 14 "Throw if registering a process actor with the same name twice." 15 ); 16 17 Assert.throws( 18 () => 19 ChromeUtils.registerWindowActor( 20 "TestProcessActor", 21 processActorOptions[fileExt] 22 ), 23 /'TestProcessActor' actor is already registered as a process actor./, 24 "Throw if registering a window actor with the same name as a process actor." 25 ); 26 }, 27 });