| <!DOCTYPE html> | |
| <div style="position: absolute" contenteditable> | |
| Text | |
| <li id="li">Text</li> | |
| <p> | |
| </div> | |
| <script> | |
| if (window.testRunner) { | |
| testRunner.dumpAsText(); | |
| testRunner.waitUntilDone(); | |
| } | |
| window.getSelection().collapse(document.getElementById("li")); | |
| document.execCommand("InsertUnorderedList"); | |
| setTimeout(function() { | |
| document.execCommand("JustifyRight"); | |
| if (window.testRunner) | |
| testRunner.notifyDone(); | |
| }, 0); | |
| </script> |