OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Event.initEvent</title> | 2 <title>Event.initEvent</title> |
3 <link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"> | 3 <link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"> |
4 <script src="../../../../resources/testharness.js"></script> | 4 <script src="../../../../resources/testharness.js"></script> |
5 <script src="../../../../resources/testharnessreport.js"></script> | 5 <script src="../../../../resources/testharnessreport.js"></script> |
6 <div id="log"></div> | 6 <div id="log"></div> |
7 <script> | 7 <script> |
8 var booleans = [true, false]; | 8 var booleans = [true, false]; |
9 booleans.forEach(function(bubbles) { | 9 booleans.forEach(function(bubbles) { |
10 booleans.forEach(function(cancelable) { | 10 booleans.forEach(function(cancelable) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 e.initEvent("type2", true, true); | 112 e.initEvent("type2", true, true); |
113 assert_equals(e.type, "type", "initEvent type setter should short-circuit"); | 113 assert_equals(e.type, "type", "initEvent type setter should short-circuit"); |
114 assert_false(e.bubbles, "initEvent bubbles setter should short-circuit"); | 114 assert_false(e.bubbles, "initEvent bubbles setter should short-circuit"); |
115 assert_false(e.cancelable, "initEvent cancelable setter should short-circuit
"); | 115 assert_false(e.cancelable, "initEvent cancelable setter should short-circuit
"); |
116 }), false) | 116 }), false) |
117 assert_equals(target.dispatchEvent(e), true, "dispatchEvent must return true") | 117 assert_equals(target.dispatchEvent(e), true, "dispatchEvent must return true") |
118 | 118 |
119 this.done() | 119 this.done() |
120 }, "Calling initEvent during propagation.") | 120 }, "Calling initEvent during propagation.") |
121 </script> | 121 </script> |
OLD | NEW |