| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>GlobalEventHandlers test</title> | 2 <title>GlobalEventHandlers test</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="script-tests/event-handlers.js"></script> | 5 <script src="script-tests/event-handlers.js"></script> |
| 6 <script> | 6 <script> |
| 7 // attribute list from WHATWG HTML Living Standard r8212 | 7 // attribute list from WHATWG HTML Living Standard r8389 |
| 8 [ | 8 [ |
| 9 "onabort", | 9 "onabort", |
| 10 "onblur", | 10 "onblur", |
| 11 "onerror", | |
| 12 "onfocus", | |
| 13 "oncancel", | 11 "oncancel", |
| 14 "oncanplay", | 12 "oncanplay", |
| 15 "oncanplaythrough", | 13 "oncanplaythrough", |
| 16 "onchange", | 14 "onchange", |
| 17 "onclick", | 15 "onclick", |
| 18 "onclose", | 16 "onclose", |
| 19 "oncontextmenu", | 17 "oncontextmenu", |
| 20 "oncuechange", | 18 "oncuechange", |
| 21 "ondblclick", | 19 "ondblclick", |
| 22 "ondrag", | 20 "ondrag", |
| 23 "ondragend", | 21 "ondragend", |
| 24 "ondragenter", | 22 "ondragenter", |
| 25 "ondragexit", | 23 "ondragexit", |
| 26 "ondragleave", | 24 "ondragleave", |
| 27 "ondragover", | 25 "ondragover", |
| 28 "ondragstart", | 26 "ondragstart", |
| 29 "ondrop", | 27 "ondrop", |
| 30 "ondurationchange", | 28 "ondurationchange", |
| 31 "onemptied", | 29 "onemptied", |
| 32 "onended", | 30 "onended", |
| 31 "onerror", |
| 32 "onfocus", |
| 33 "oninput", | 33 "oninput", |
| 34 "oninvalid", | 34 "oninvalid", |
| 35 "onkeydown", | 35 "onkeydown", |
| 36 "onkeypress", | 36 "onkeypress", |
| 37 "onkeyup", | 37 "onkeyup", |
| 38 "onload", | 38 "onload", |
| 39 "onloadeddata", | 39 "onloadeddata", |
| 40 "onloadedmetadata", | 40 "onloadedmetadata", |
| 41 "onloadstart", | 41 "onloadstart", |
| 42 "onmousedown", | 42 "onmousedown", |
| 43 "onmouseenter", | 43 "onmouseenter", |
| 44 "onmouseleave", | 44 "onmouseleave", |
| 45 "onmousemove", | 45 "onmousemove", |
| 46 "onmouseout", | 46 "onmouseout", |
| 47 "onmouseover", | 47 "onmouseover", |
| 48 "onmouseup", | 48 "onmouseup", |
| 49 "onmousewheel", | 49 "onmousewheel", |
| 50 "onpause", | 50 "onpause", |
| 51 "onplay", | 51 "onplay", |
| 52 "onplaying", | 52 "onplaying", |
| 53 "onprogress", | 53 "onprogress", |
| 54 "onratechange", | 54 "onratechange", |
| 55 "onreset", | 55 "onreset", |
| 56 "onresize", |
| 56 "onscroll", | 57 "onscroll", |
| 57 "onseeked", | 58 "onseeked", |
| 58 "onseeking", | 59 "onseeking", |
| 59 "onselect", | 60 "onselect", |
| 60 "onshow", | 61 "onshow", |
| 61 "onsort", | 62 "onsort", |
| 62 "onstalled", | 63 "onstalled", |
| 63 "onsubmit", | 64 "onsubmit", |
| 64 "onsuspend", | 65 "onsuspend", |
| 65 "ontimeupdate", | 66 "ontimeupdate", |
| 67 "ontoggle", |
| 66 "onvolumechange", | 68 "onvolumechange", |
| 67 "onwaiting" | 69 "onwaiting" |
| 68 ].forEach(function(attribute) { | 70 ].forEach(function(attribute) { |
| 69 test(function() { | 71 test(function() { |
| 70 assert_false(attribute in getObject("Element")); | 72 assert_false(attribute in getObject("Element")); |
| 71 }, "No Element." + attribute); | 73 }, "No Element." + attribute); |
| 72 testSet("HTMLElement", attribute); | 74 testSet("HTMLElement", attribute); |
| 73 testEnumerate("HTMLElement", attribute); | 75 testEnumerate("HTMLElement", attribute); |
| 74 testReflect("HTMLElement", attribute); | 76 testReflect("HTMLElement", attribute); |
| 75 testSet("SVGElement", attribute); | 77 testSet("SVGElement", attribute); |
| 76 testEnumerate("SVGElement", attribute); | 78 testEnumerate("SVGElement", attribute); |
| 77 testReflect("SVGElement", attribute); | 79 testReflect("SVGElement", attribute); |
| 78 testSet("Document", attribute); | 80 testSet("Document", attribute); |
| 79 testEnumerate("Document", attribute); | 81 testEnumerate("Document", attribute); |
| 80 testSet("Window", attribute); | 82 testSet("Window", attribute); |
| 81 testEnumerate("Window", attribute); | 83 testEnumerate("Window", attribute); |
| 82 }); | 84 }); |
| 83 </script> | 85 </script> |
| 84 <div id="log"></div> | 86 <div id="log"></div> |
| OLD | NEW |