11cb0ef41Sopenharmony_ci<!doctype html>
21cb0ef41Sopenharmony_ci<title>Event constants</title>
31cb0ef41Sopenharmony_ci<script src="/resources/testharness.js"></script>
41cb0ef41Sopenharmony_ci<script src="/resources/testharnessreport.js"></script>
51cb0ef41Sopenharmony_ci<script src="../constants.js"></script>
61cb0ef41Sopenharmony_ci<div id="log"></div>
71cb0ef41Sopenharmony_ci<script>
81cb0ef41Sopenharmony_civar objects;
91cb0ef41Sopenharmony_cisetup(function() {
101cb0ef41Sopenharmony_ci  objects = [
111cb0ef41Sopenharmony_ci    [Event, "Event interface object"],
121cb0ef41Sopenharmony_ci    [Event.prototype, "Event prototype object"],
131cb0ef41Sopenharmony_ci    [document.createEvent("Event"), "Event object"],
141cb0ef41Sopenharmony_ci    [document.createEvent("CustomEvent"), "CustomEvent object"]
151cb0ef41Sopenharmony_ci  ]
161cb0ef41Sopenharmony_ci})
171cb0ef41Sopenharmony_citestConstants(objects, [
181cb0ef41Sopenharmony_ci  ["NONE", 0],
191cb0ef41Sopenharmony_ci  ["CAPTURING_PHASE", 1],
201cb0ef41Sopenharmony_ci  ["AT_TARGET", 2],
211cb0ef41Sopenharmony_ci  ["BUBBLING_PHASE", 3]
221cb0ef41Sopenharmony_ci], "eventPhase")
231cb0ef41Sopenharmony_ci</script>
24