summaryrefslogtreecommitdiffstats
path: root/devtools/shared/test-helpers/test-stepper.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
commitda4c7e7ed675c3bf405668739c3012d140856109 (patch)
treecdd868dba063fecba609a1d819de271f0d51b23e /devtools/shared/test-helpers/test-stepper.js
parentAdding upstream version 125.0.3. (diff)
downloadfirefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz
firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/shared/test-helpers/test-stepper.js')
-rw-r--r--devtools/shared/test-helpers/test-stepper.js18
1 files changed, 8 insertions, 10 deletions
diff --git a/devtools/shared/test-helpers/test-stepper.js b/devtools/shared/test-helpers/test-stepper.js
index 314a687dbf..856276db00 100644
--- a/devtools/shared/test-helpers/test-stepper.js
+++ b/devtools/shared/test-helpers/test-stepper.js
@@ -4,12 +4,10 @@
"use strict";
-const {
- startTracing,
- addTracingListener,
- stopTracing,
- removeTracingListener,
-} = require("resource://devtools/server/tracer/tracer.jsm");
+const { JSTracer } = ChromeUtils.importESModule(
+ "resource://devtools/server/tracer/tracer.sys.mjs",
+ { global: "contextual" }
+);
let testFileContent;
@@ -69,13 +67,13 @@ exports.start = function (testGlobal, testUrl, pause) {
logStep(
`'\u21A6 ' symbol highlights what precise instruction is being called`
);
- startTracing(tracerOptions);
- addTracingListener(tracingListener);
+ JSTracer.startTracing(tracerOptions);
+ JSTracer.addTracingListener(tracingListener);
};
exports.stop = function () {
- stopTracing();
- removeTracingListener(tracingListener);
+ JSTracer.stopTracing();
+ JSTracer.removeTracingListener(tracingListener);
};
function readURI(uri) {