summaryrefslogtreecommitdiffstats
path: root/testing/xpcshell/example/unit/import_sub_module.jsm
diff options
context:
space:
mode:
Diffstat (limited to 'testing/xpcshell/example/unit/import_sub_module.jsm')
-rw-r--r--testing/xpcshell/example/unit/import_sub_module.jsm10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/xpcshell/example/unit/import_sub_module.jsm b/testing/xpcshell/example/unit/import_sub_module.jsm
new file mode 100644
index 000000000..164951717
--- /dev/null
+++ b/testing/xpcshell/example/unit/import_sub_module.jsm
@@ -0,0 +1,10 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+// Module used by import_module.jsm
+
+var EXPORTED_SYMBOLS = [ "SUBMODULE_IMPORTED", "test_obj" ];
+
+const SUBMODULE_IMPORTED = true;
+var test_obj = { i: 0 };