summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run/025_hrtime.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/run/025_hrtime.ts')
-rw-r--r--cli/tests/testdata/run/025_hrtime.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/025_hrtime.ts b/cli/tests/testdata/run/025_hrtime.ts
new file mode 100644
index 000000000..b69d61488
--- /dev/null
+++ b/cli/tests/testdata/run/025_hrtime.ts
@@ -0,0 +1,5 @@
+window.onload = async () => {
+ console.log(performance.now() % 2 !== 0);
+ await Deno.permissions.revoke({ name: "hrtime" });
+ console.log(performance.now() % 2 === 0);
+};