ExtensionTest.webidl (2853B)
1 /* 2 * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT 3 * 4 * The content of this file has been generated based on the WebExtensions API 5 * JSONSchema using the following command: 6 * 7 * export SCRIPT_DIR="toolkit/components/extensions/webidl-api" 8 * mach python $SCRIPT_DIR/GenerateWebIDLBindings.py -- test 9 * 10 * More info about generating webidl API bindings for WebExtensions API at: 11 * 12 * https://firefox-source-docs.mozilla.org/toolkit/components/extensions/webextensions/webidl_bindings.html 13 * 14 * A short summary of the special setup used by these WebIDL files (meant to aid 15 * webidl peers reviews and sign-offs) is available in the following section: 16 * 17 * https://firefox-source-docs.mozilla.org/toolkit/components/extensions/webextensions/webidl_bindings.html#review-process-on-changes-to-webidl-definitions 18 */ 19 20 /* This Source Code Form is subject to the terms of the Mozilla Public 21 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 22 * You can obtain one at http://mozilla.org/MPL/2.0/. 23 * 24 * You are granted a license to use, reproduce and create derivative works of 25 * this document. 26 */ 27 28 // WebIDL definition for the "test" WebExtensions API 29 [Exposed=(ServiceWorker), LegacyNoInterfaceObject] 30 interface ExtensionTest { 31 // API methods. 32 33 [Throws, WebExtensionStub="NotImplementedNoReturn"] 34 undefined withHandlingUserInput(Function callback); 35 36 [Throws, WebExtensionStub="NoReturn"] 37 undefined notifyFail(DOMString message); 38 39 [Throws, WebExtensionStub="NoReturn"] 40 undefined notifyPass(DOMString message); 41 [Throws, WebExtensionStub="NoReturn"] 42 undefined notifyPass(); 43 44 [Throws, WebExtensionStub="NoReturn"] 45 undefined log(DOMString message); 46 47 [Throws, WebExtensionStub="NoReturn"] 48 undefined sendMessage(any... args); 49 50 [Throws, WebExtensionStub="NoReturn"] 51 undefined fail(any message); 52 [Throws, WebExtensionStub="NoReturn"] 53 undefined fail(); 54 55 [Throws, WebExtensionStub="NoReturn"] 56 undefined succeed(any message); 57 [Throws, WebExtensionStub="NoReturn"] 58 undefined succeed(); 59 60 [Throws, WebExtensionStub="NoReturn"] 61 undefined assertTrue(any... args); 62 63 [Throws, WebExtensionStub="NoReturn"] 64 undefined assertFalse(any... args); 65 66 [Throws, WebExtensionStub="NoReturn"] 67 undefined assertDeepEq(any... args); 68 69 [Throws, WebExtensionStub="AssertEq"] 70 undefined assertEq(any... args); 71 72 [Throws] 73 any assertRejects(Promise<any> promise, any expectedError, DOMString message, optional Function callback); 74 [Throws] 75 any assertRejects(Promise<any> promise, any expectedError, optional Function callback); 76 77 [Throws] 78 undefined assertThrows(Function func, any expectedError, DOMString message); 79 [Throws] 80 undefined assertThrows(Function func, any expectedError); 81 82 // API events. 83 84 [Replaceable, SameObject] 85 readonly attribute ExtensionEventManager onMessage; 86 };