summaryrefslogtreecommitdiffstats
path: root/toolkit/components/ctypes
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/ctypes')
-rw-r--r--toolkit/components/ctypes/tests/chrome/xpcshellTestHarnessAdaptor.js2
-rw-r--r--toolkit/components/ctypes/tests/unit/test_errno.js5
-rw-r--r--toolkit/components/ctypes/tests/unit/test_jsctypes.js2
3 files changed, 4 insertions, 5 deletions
diff --git a/toolkit/components/ctypes/tests/chrome/xpcshellTestHarnessAdaptor.js b/toolkit/components/ctypes/tests/chrome/xpcshellTestHarnessAdaptor.js
index 9e90b22561..24f0cb2602 100644
--- a/toolkit/components/ctypes/tests/chrome/xpcshellTestHarnessAdaptor.js
+++ b/toolkit/components/ctypes/tests/chrome/xpcshellTestHarnessAdaptor.js
@@ -83,7 +83,7 @@ FileFaker.prototype = {
},
};
-function do_get_file(path, allowNonexistent) {
+function do_get_file(path) {
if (!_WORKINGDIR_) {
do_throw("No way to fake files if working directory is unknown!");
}
diff --git a/toolkit/components/ctypes/tests/unit/test_errno.js b/toolkit/components/ctypes/tests/unit/test_errno.js
index 24dba0597b..8905ec3a18 100644
--- a/toolkit/components/ctypes/tests/unit/test_errno.js
+++ b/toolkit/components/ctypes/tests/unit/test_errno.js
@@ -2,11 +2,10 @@
var ctypes = ctypes;
function run_test() {
- // Launch the test with regular loading of ctypes.jsm
+ // Launch the test with regular loading of ctypes.sys.mjs
main_test();
- // Relaunch the test with exotic loading of ctypes.jsm
- Cu.unload("resource://gre/modules/ctypes.jsm");
+ // Relaunch the test with exotic loading of ctypes.sys.mjs
let scope = ChromeUtils.importESModule(
"resource://gre/modules/ctypes.sys.mjs"
);
diff --git a/toolkit/components/ctypes/tests/unit/test_jsctypes.js b/toolkit/components/ctypes/tests/unit/test_jsctypes.js
index 7227ec9925..66255d85b1 100644
--- a/toolkit/components/ctypes/tests/unit/test_jsctypes.js
+++ b/toolkit/components/ctypes/tests/unit/test_jsctypes.js
@@ -3470,7 +3470,7 @@ function run_string_tests(library) {
Assert.equal(ptrValue(test_ansi_echo(null)), 0);
}
-function run_readstring_tests(library) {
+function run_readstring_tests() {
// ASCII decode test, "hello world"
let ascii_string = ctypes.unsigned_char.array(12)();
ascii_string[0] = 0x68;