diff options
Diffstat (limited to 'cli/tests/testdata/run/onload/imported.ts')
-rw-r--r-- | cli/tests/testdata/run/onload/imported.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/cli/tests/testdata/run/onload/imported.ts b/cli/tests/testdata/run/onload/imported.ts deleted file mode 100644 index 971ddaea3..000000000 --- a/cli/tests/testdata/run/onload/imported.ts +++ /dev/null @@ -1,13 +0,0 @@ -// deno-lint-ignore-file no-window-prefix -import { assert } from "../../../../../test_util/std/assert/mod.ts"; -import "./nest_imported.ts"; - -const handler = (e: Event) => { - assert(e.type === "beforeunload" ? e.cancelable : !e.cancelable); - console.log(`got ${e.type} event in event handler (imported)`); -}; - -window.addEventListener("load", handler); -window.addEventListener("beforeunload", handler); -window.addEventListener("unload", handler); -console.log("log from imported script"); |