summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/025_hrtime.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/cli/tests/025_hrtime.ts b/cli/tests/025_hrtime.ts
index 417ca6982..9f60b7a77 100644
--- a/cli/tests/025_hrtime.ts
+++ b/cli/tests/025_hrtime.ts
@@ -1,3 +1,5 @@
-console.log(performance.now() % 2 !== 0);
-Deno.revokePermission("hrtime");
-console.log(performance.now() % 2 === 0);
+window.onload = async (): Promise<void> => {
+ console.log(performance.now() % 2 !== 0);
+ await Deno.permissions.revoke({ name: "hrtime" });
+ console.log(performance.now() % 2 === 0);
+};