summaryrefslogtreecommitdiff
path: root/cli/tests/034_onload/nest_imported.ts
blob: 3c4b1d96a1ba2044f56a7cc90afa525be6d9d729 (plain)
1
2
3
4
5
6
7
8
9
10
import { assert } from "../../../js/deps/https/deno.land/std/testing/asserts.ts";

const handler = (e: Event): void => {
  assert(!e.cancelable);
  console.log(`got ${e.type} event in event handler (nest_imported)`);
};

window.addEventListener("load", handler);
window.addEventListener("unload", handler);
console.log("log from nest_imported script");