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