We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 534becf commit a81224dCopy full SHA for a81224d
tests/run.mjs
@@ -99,10 +99,13 @@ async function test() {
99
await driver.get(`http://localhost:${PORT}/tests/index.html`);
100
101
await driver.executeAsyncScript((callback) => {
102
- window.addEventListener("benchmark-ready", () => callback());
103
-
104
if (window.benchmarkReady)
105
callback();
+
+ window.addEventListener("benchmark-ready", function handleBenchmarkReady() {
106
+ window.removeEventListener("benchmark-ready", handleBenchmarkReady);
107
+ callback();
108
+ });
109
});
110
111
const result = await driver.executeAsyncScript(function (callback) {
0 commit comments