OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <title>Event constants</title> |
| 3 <script src="../../../../resources/testharness.js"></script> |
| 4 <script src="../../../../resources/testharnessreport.js"></script> |
| 5 <script src="../constants.js"></script> |
| 6 <div id="log"></div> |
| 7 <script> |
| 8 var objects; |
| 9 setup(function() { |
| 10 objects = [ |
| 11 [Event, "Event interface object"], |
| 12 [Event.prototype, "Event prototype object"], |
| 13 [document.createEvent("Event"), "Event object"], |
| 14 [document.createEvent("CustomEvent"), "CustomEvent object"] |
| 15 ] |
| 16 }) |
| 17 testConstants(objects, [ |
| 18 ["NONE", 0], |
| 19 ["CAPTURING_PHASE", 1], |
| 20 ["AT_TARGET", 2], |
| 21 ["BUBBLING_PHASE", 3] |
| 22 ], "eventPhase") |
| 23 </script> |
OLD | NEW |