diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
commit | d8bbc7858622b6d9c278469aab701ca0b609cddf (patch) | |
tree | eff41dc61d9f714852212739e6b3738b82a2af87 /devtools/shared/test-helpers/test-stepper.js | |
parent | Releasing progress-linux version 125.0.3-1~progress7.99u1. (diff) | |
download | firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip |
Merging upstream version 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.js | 18 |
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) { |