| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="../editing.js"></script> | |
| <script> | |
| if (window.testRunner) | |
| testRunner.dumpAsText(); | |
| function editingTest() { | |
| var editable = document.getElementById('editable'); | |
| editable.focus(); | |
| document.execCommand('SelectAll'); | |
| document.execCommand('InsertText', false, 'SUCCEEDED'); | |
| document.execCommand('SelectAll'); | |
| document.write("PASS. WebKit didn't crash."); | |
| } | |
| </script> | |
| </head> | |
| <body onload=runEditingTest()> | |
| <div id="editable" contenteditable="true"> | |
| Foo | |
| <div style="overflow:scroll;"> | |
| <div style="display:table"></div> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |