Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / execCommand / align-in-span.html
1 <html>
2 <head>
3 <script type="text/javascript">
4
5 function selectAndJustify()
6 {
7     if (window.testRunner)
8         testRunner.dumpAsText();
9
10     var elem = document.getElementById("test");
11     var selection = window.getSelection();
12     selection.setBaseAndExtent(elem, 2, elem, 6);
13     document.execCommand('JustifyCenter', false, null);
14 }
15
16 </script>
17 </head>
18
19 <body>
20     <span id="test" contenteditable="true" >
21         Line 1.
22         <br>
23         <b>Select all text in this line and use justify command.</b>
24         <br>
25         Line 3.
26     </span>
27 </body>
28 <script>
29 selectAndJustify();
30 </script>
31 </html>