summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorBenjamin Gruenbaum <benjamingr@gmail.com>2020-12-07 22:22:58 +0200
committerGitHub <noreply@github.com>2020-12-07 21:22:58 +0100
commitb566d184fedcd0fae3de19a54adfa5ce09466cc1 (patch)
tree958e668e88e7ce0382042d6a61b590884374bf34 /cli/tests
parent43a35b005f9f4631dd97a9db0f41ad76eaed941e (diff)
refactor(cli/rt): deduplicate code (#8649)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/034_onload/main.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/034_onload/main.ts b/cli/tests/034_onload/main.ts
index db6ca669a..aca38869e 100644
--- a/cli/tests/034_onload/main.ts
+++ b/cli/tests/034_onload/main.ts
@@ -1,6 +1,9 @@
import { assert } from "../../../std/testing/asserts.ts";
import "./imported.ts";
+assert(window.hasOwnProperty("onload"));
+assert(window.onload === null);
+
const eventHandler = (e: Event): void => {
assert(!e.cancelable);
console.log(`got ${e.type} event in event handler (main)`);