diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-05-23 19:28:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-23 19:28:29 +0300 |
commit | 2952fb5405eabbb9e603e90fe2e972e9bddfcadd (patch) | |
tree | bcf78f5884e7ca0a8ce789f035782e4536617332 /tests | |
parent | 1386b6ead586da15d0285941f2d980acc1d75eee (diff) |
Rename --allow-high-precision to --allow-hrtime (#2398)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/025_high_precision.test | 2 | ||||
-rw-r--r-- | tests/025_hrtime.test | 2 | ||||
-rw-r--r-- | tests/025_hrtime.ts (renamed from tests/025_high_precision.ts) | 2 | ||||
-rw-r--r-- | tests/025_hrtime.ts.out (renamed from tests/025_high_precision.ts.out) | 0 |
4 files changed, 3 insertions, 3 deletions
diff --git a/tests/025_high_precision.test b/tests/025_high_precision.test deleted file mode 100644 index fbdbbe8f9..000000000 --- a/tests/025_high_precision.test +++ /dev/null @@ -1,2 +0,0 @@ -args: run --allow-high-precision --reload tests/025_high_precision.ts -output: tests/025_high_precision.ts.out diff --git a/tests/025_hrtime.test b/tests/025_hrtime.test new file mode 100644 index 000000000..3b25452ac --- /dev/null +++ b/tests/025_hrtime.test @@ -0,0 +1,2 @@ +args: run --allow-hrtime --reload tests/025_hrtime.ts +output: tests/025_hrtime.ts.out diff --git a/tests/025_high_precision.ts b/tests/025_hrtime.ts index 85b3c839b..417ca6982 100644 --- a/tests/025_high_precision.ts +++ b/tests/025_hrtime.ts @@ -1,3 +1,3 @@ console.log(performance.now() % 2 !== 0); -Deno.revokePermission("highPrecision"); +Deno.revokePermission("hrtime"); console.log(performance.now() % 2 === 0); diff --git a/tests/025_high_precision.ts.out b/tests/025_hrtime.ts.out index bb101b641..bb101b641 100644 --- a/tests/025_high_precision.ts.out +++ b/tests/025_hrtime.ts.out |