From b566d184fedcd0fae3de19a54adfa5ce09466cc1 Mon Sep 17 00:00:00 2001 From: Benjamin Gruenbaum Date: Mon, 7 Dec 2020 22:22:58 +0200 Subject: refactor(cli/rt): deduplicate code (#8649) --- cli/tests/034_onload/main.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/tests') 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)`); -- cgit v1.2.3