| <!DOCTYPE html> |
| <html> |
| <head> |
| <script> |
| function runTest() { |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| iframe.contentWindow.onpagehide = () => { |
| document.execCommand("indent", false); |
| document.execCommand("selectAll", false); |
| }; |
| document.execCommand("selectAll", false); |
| document.execCommand("outdent", false); |
| } |
| </script> |
| </head> |
| <body onload="runTest()" contenteditable> |
| This tests that we do not crash while outdenting paragraphs. |
| PASS |
| <ol> |
| <li> |
| <iframe id="iframe"></iframe> |
| </li> |
| </ol> |
| </body> |
| </html> |