| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <title>GlobalEventHandlers Touch Interface Tests</title> | 2 <title>GlobalEventHandlers Touch Interface Tests</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> | 5 <script> |
| 6 test(function() { | 6 test(function() { |
| 7 var touch_event_list = ['ontouchstart', 'ontouchmove', 'ontouchend', 'ontouc
hcancel']; | 7 var touch_event_list = ['ontouchstart', 'ontouchmove', 'ontouchend', 'ontouc
hcancel']; |
| 8 var global_event_handlers = [window, HTMLElement.prototype, SVGElement.proto
type, Document.prototype]; | 8 var global_event_handlers = [window, HTMLElement.prototype, SVGElement.proto
type, Document.prototype]; |
| 9 for (var i in touch_event_list) { | 9 for (var i in touch_event_list) { |
| 10 for (var j in global_event_handlers) { | 10 for (var j in global_event_handlers) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 test(function() { | 26 test(function() { |
| 27 var touch_event_list = ['ontouchstart', 'ontouchmove', 'ontouchend', 'ontouc
hcancel']; | 27 var touch_event_list = ['ontouchstart', 'ontouchmove', 'ontouchend', 'ontouc
hcancel']; |
| 28 var non_global_event_handlers = [Element.prototype]; | 28 var non_global_event_handlers = [Element.prototype]; |
| 29 for (var i in touch_event_list) { | 29 for (var i in touch_event_list) { |
| 30 for (var j in non_global_event_handlers) { | 30 for (var j in non_global_event_handlers) { |
| 31 assert_false(touch_event_list[i] in non_global_event_handlers[j], "T
ouch event " + touch_event_list[i] + " not in " + non_global_event_handlers[j].c
onstructor.name); | 31 assert_false(touch_event_list[i] in non_global_event_handlers[j], "T
ouch event " + touch_event_list[i] + " not in " + non_global_event_handlers[j].c
onstructor.name); |
| 32 } | 32 } |
| 33 } | 33 } |
| 34 }, "Touch events not in Element.prototype"); | 34 }, "Touch events not in Element.prototype"); |
| 35 </script> | 35 </script> |
| OLD | NEW |