summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests
diff options
context:
space:
mode:
Diffstat (limited to 'js/xpconnect/tests')
-rw-r--r--js/xpconnect/tests/chrome/test_xrayToJS.xhtml6
-rw-r--r--js/xpconnect/tests/idl/xpctest_utils.idl24
2 files changed, 18 insertions, 12 deletions
diff --git a/js/xpconnect/tests/chrome/test_xrayToJS.xhtml b/js/xpconnect/tests/chrome/test_xrayToJS.xhtml
index 9943055aea..6f4889fe21 100644
--- a/js/xpconnect/tests/chrome/test_xrayToJS.xhtml
+++ b/js/xpconnect/tests/chrome/test_xrayToJS.xhtml
@@ -313,8 +313,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=933681
constructorProps(["groupBy", Symbol.species]);
gPrototypeProperties.Set =
- ["constructor", "size", Symbol.toStringTag, "has", "add", "delete",
- "keys", "values", "clear", "forEach", "entries", Symbol.iterator];
+ [Symbol.toStringTag, Symbol.iterator, "add", "clear", "constructor", "delete",
+ "difference", "entries", "forEach", "has", "intersection", "isDisjointFrom",
+ "isSubsetOf", "isSupersetOf", "keys", "size", "symmetricDifference", "union",
+ "values"];
gConstructorProperties.Set =
constructorProps([Symbol.species]);
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);
};