diff --git a/html/webappapis/scripting/events/event-handler-processing-algorithm-error/document-synthetic-errorevent.html b/html/webappapis/scripting/events/event-handler-processing-algorithm-error/document-synthetic-errorevent.html
index 8b1b3cfb5b2c33..a541611909767a 100644
--- a/html/webappapis/scripting/events/event-handler-processing-algorithm-error/document-synthetic-errorevent.html
+++ b/html/webappapis/scripting/events/event-handler-processing-algorithm-error/document-synthetic-errorevent.html
@@ -21,10 +21,24 @@
const eventWatcher = new EventWatcher(t, document, "error");
const promise = eventWatcher.wait_for("error").then(e => {
assert_equals(e.defaultPrevented, false);
+ assert_equals(e.message, "");
+ assert_equals(e.filename, "");
+ assert_equals(e.lineno, 0);
+ assert_equals(e.colno, 0);
+ assert_equals(e.error, undefined);
});
document.dispatchEvent(new ErrorEvent("error", { cancelable: true }));
return promise;
}, "error event is normal (return true does not cancel; one arg) on Document, with a synthetic ErrorEvent");
+
+test(() => {
+ const e = new ErrorEvent("error");
+ assert_equals(e.message, "");
+ assert_equals(e.filename, "");
+ assert_equals(e.lineno, 0);
+ assert_equals(e.colno, 0);
+ assert_equals(e.error, undefined);
+}, "Initial values of ErrorEvent members")