diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /js/xpconnect/tests/idl/xpctest_utils.idl | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | js/xpconnect/tests/idl/xpctest_utils.idl | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/js/xpconnect/tests/idl/xpctest_utils.idl b/js/xpconnect/tests/idl/xpctest_utils.idl index db135fcbe1..3379a5253c 100644 --- a/js/xpconnect/tests/idl/xpctest_utils.idl +++ b/js/xpconnect/tests/idl/xpctest_utils.idl @@ -18,25 +18,29 @@ interface nsIXPCTestUtils : nsISupports { nsIXPCTestFunctionInterface doubleWrapFunction(in nsIXPCTestFunctionInterface f); }; -/* - * Test that non-[scriptable] interfaces and [noscript] members are not - * generated for TypeScript bindings. +/** + * TypeScript bindings specific tests. */ +// Typedefs with a TSNoncompat underlying type are not defined. +typedef voidPtr Noncompat; + +// Not [scriptable] interfaces are not generated. [uuid(ddf64cfb-668a-4571-a900-0fe2babb6249)] interface nsIXPCTestNotScriptable : nsISupports { // Empty. }; [scriptable, uuid(1bbfe703-c67d-4995-b061-564c8a1c39d7)] -interface nsIXPCTestNoScriptMembers : nsISupports { - [noscript] - attribute long noscriptProp; - +interface nsIXPCTestTypeScript : nsISupports { attribute long exposedProp; + void exposedMethod(in long arg); - [noscript] - void noscriptMethod(in long arg); + // Members referencing TSNoncompat typedefs are not exposed. + [noscript] attribute Noncompat noncompatProp; + [noscript] void noncompatMethod(in Noncompat arg); - void exposedMethod(in long arg); + // [noscript] attributes and methods are not exposed. + [noscript] attribute long noscriptProp; + [noscript] void noscriptMethod(in long arg); }; |