summaryrefslogtreecommitdiffstats
path: root/devtools/shared/test-helpers/test-stepper.js
diff options
context:
space:
mode:
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) {