From d8bbc7858622b6d9c278469aab701ca0b609cddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:35:49 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- toolkit/components/ctypes/tests/chrome/xpcshellTestHarnessAdaptor.js | 2 +- toolkit/components/ctypes/tests/unit/test_errno.js | 5 ++--- toolkit/components/ctypes/tests/unit/test_jsctypes.js | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'toolkit/components/ctypes/tests') 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; -- cgit v1.2.3