upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / indent-nested-div.html
1 <p>This tests indenting nested divs.  By indenting "hello", we should be able to enclose all three blocks 1 through 3 by a blockquote</p>
2 <div id="div" contenteditable="true">
3 <div id="block1"><div id="block2"><div id="block3">hello</div></div></div>
4 </div>
5 <div id="c"></div>
6 <script>
7
8 if (window.layoutTestController)
9     layoutTestController.dumpAsText();
10
11 var e = document.getElementById("block3");
12 var s = window.getSelection();
13 var r = document.createRange();
14 r.setStart(e,0);
15 r.setEnd(e,1);
16 s.addRange(r);
17 document.execCommand("Indent", false, null);
18 text = document.createTextNode(document.getElementById('div').innerHTML);
19 document.getElementById('c').appendChild( text );
20 </script>