OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <p>This test ensures WebKit does not fire DOM mutation events while execCommand
is in progress.</p> | 4 <p>This test ensures WebKit does not fire DOM mutation events while execCommand
is in progress.</p> |
5 <div id="test" contenteditable></div> | 5 <div id="test" contenteditable></div> |
6 <pre> | 6 <pre> |
7 <script> | 7 <script> |
8 | 8 |
9 if (window.layoutTestController) | 9 if (window.layoutTestController) |
10 layoutTestController.dumpAsText(); | 10 layoutTestController.dumpAsText(); |
(...skipping 29 matching lines...) Expand all Loading... |
40 {name: 'RemoveFormat', value: null}, | 40 {name: 'RemoveFormat', value: null}, |
41 {name: 'Strikethrough', value: null}, | 41 {name: 'Strikethrough', value: null}, |
42 {name: 'Subscript', value: null}, | 42 {name: 'Subscript', value: null}, |
43 {name: 'Superscript', value: null}, | 43 {name: 'Superscript', value: null}, |
44 {name: 'Transpose', value: null, selector: function (test) { window.getSelec
tion().setPosition(test.firstChild, 1); }}, | 44 {name: 'Transpose', value: null, selector: function (test) { window.getSelec
tion().setPosition(test.firstChild, 1); }}, |
45 {name: 'Underline', value: null}, | 45 {name: 'Underline', value: null}, |
46 {name: 'Unlink', value: null}, | 46 {name: 'Unlink', value: null}, |
47 ]; | 47 ]; |
48 | 48 |
49 var events = { | 49 var events = { |
| 50 'DOMCharacterDataModified': false, |
50 'DOMSubtreeModified': false, | 51 'DOMSubtreeModified': false, |
51 'DOMNodeInserted': false, | 52 'DOMNodeInserted': false, |
52 'DOMNodeRemoved': false, | 53 'DOMNodeRemoved': false, |
53 'DOMNodeRemovedFromDocument': false, | 54 'DOMNodeRemovedFromDocument': false, |
54 'DOMNodeInsertedIntoDocument': true, // this event can never be observed. | 55 'DOMNodeInsertedIntoDocument': true, // this event can never be observed. |
55 'DOMFocusIn': false, | 56 'DOMFocusIn': false, |
56 'DOMFocusOut': false, | 57 'DOMFocusOut': false, |
57 'focusin': false, | 58 'focusin': false, |
58 'focusout': false, | 59 'focusout': false, |
59 }; | 60 }; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 if (!events[e]) | 121 if (!events[e]) |
121 document.write('\nWARNING: ' + e + ' was never observed.'); | 122 document.write('\nWARNING: ' + e + ' was never observed.'); |
122 } | 123 } |
123 | 124 |
124 document.write('\n\nDONE'); | 125 document.write('\n\nDONE'); |
125 | 126 |
126 </script> | 127 </script> |
127 </pre> | 128 </pre> |
128 </body> | 129 </body> |
129 </html> | 130 </html> |
OLD | NEW |