diff options
author | Benjamin Gruenbaum <benjamingr@gmail.com> | 2020-12-07 22:22:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 21:22:58 +0100 |
commit | b566d184fedcd0fae3de19a54adfa5ce09466cc1 (patch) | |
tree | 958e668e88e7ce0382042d6a61b590884374bf34 /cli/tests | |
parent | 43a35b005f9f4631dd97a9db0f41ad76eaed941e (diff) |
refactor(cli/rt): deduplicate code (#8649)
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/034_onload/main.ts | 3 |
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)`); |