| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body><span contenteditable><img><img></span> | 3 <body><span contenteditable><img><img></span> |
| 4 <script src="../../resources/dump-as-markup.js"></script> | 4 <script src="../../resources/dump-as-markup.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 if (window.testRunner) | 7 if (window.testRunner) |
| 8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
| 9 | 9 |
| 10 while (script = document.querySelector('script')) | 10 while (script = document.querySelector('script')) |
| 11 script.parentNode.removeChild(script); | 11 script.parentNode.removeChild(script); |
| 12 | 12 |
| 13 getSelection().setPosition(document.getElementsByTagName('div')[0], 2); | 13 getSelection().setPosition(document.getElementsByTagName('span')[0], 2); |
| 14 document.execCommand('indent'); | 14 document.execCommand('indent'); |
| 15 | 15 |
| 16 Markup.description('This test indents insides a document with exactly two image
elements.\n' | 16 Markup.description('This test indents insides a document with exactly two image
elements.\n' |
| 17 + 'Indentation should fail because the root editable element is inline.'); | 17 + 'Indentation should succeed even if the root editable element is inline.'); |
| 18 Markup.dump(document.body); | 18 Markup.dump(document.body); |
| 19 | 19 |
| 20 </script> | 20 </script> |
| 21 </body> | 21 </body> |
| 22 </html> | 22 </html> |
| OLD | NEW |