From 8158699f81fb068af4fb8f70661388b1fdb88813 Mon Sep 17 00:00:00 2001 From: alphan102 Date: Thu, 23 Aug 2018 18:13:14 +0200 Subject: [PATCH] DOM: do initEvent() before a returnValue test --- dom/events/Event-defaultPrevented.html | 1 + 1 file changed, 1 insertion(+) diff --git a/dom/events/Event-defaultPrevented.html b/dom/events/Event-defaultPrevented.html index f0230085bfad65..2548fa3e064bb1 100644 --- a/dom/events/Event-defaultPrevented.html +++ b/dom/events/Event-defaultPrevented.html @@ -40,6 +40,7 @@ assert_equals(ev.defaultPrevented, true, "defaultPrevented"); }, "preventDefault() should change defaultPrevented if cancelable is true."); test(function() { + ev.initEvent("foo", true, true); assert_equals(ev.cancelable, true, "cancelable (before)"); ev.returnValue = false; assert_equals(ev.cancelable, true, "cancelable (after)");