diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-26 11:49:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-26 11:49:38 +0100 |
| commit | 0e37184ca8084c257948d466c066fdb875ee44f3 (patch) | |
| tree | ff7b01248d5e14987e0a9f8046029461f975d793 /cli/js/globals_test.ts | |
| parent | 5946808f66aab1983ade3db2541734bb43626a72 (diff) | |
add window.self read-only property (#4131)
Diffstat (limited to 'cli/js/globals_test.ts')
| -rw-r--r-- | cli/js/globals_test.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/js/globals_test.ts b/cli/js/globals_test.ts index d6bc87f5c..70c5e4e37 100644 --- a/cli/js/globals_test.ts +++ b/cli/js/globals_test.ts @@ -9,14 +9,26 @@ test(function windowExists(): void { assert(window != null); }); +test(function selfExists(): void { + assert(self != null); +}); + test(function windowWindowExists(): void { assert(window.window === window); }); +test(function windowSelfExists(): void { + assert(window.self === window); +}); + test(function globalThisEqualsWindow(): void { assert(globalThis === window); }); +test(function globalThisEqualsSelf(): void { + assert(globalThis === self); +}); + test(function DenoNamespaceExists(): void { assert(Deno != null); }); |
