Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / execCommand / nsresponder-outdent.html
1 <script>
2 if (window.testRunner)
3      testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests the outdent: method.  You should see an undented 'foo' below.</p>
6 <div id="div" contenteditable="true"><blockquote class="webkit-indent-blockquote">foo</blockquote></div>
7
8 <script>
9 var div = document.getElementById("div");
10 var sel = window.getSelection();
11
12 sel.setPosition(div, 0);
13
14 document.execCommand("Outdent");
15 </script>