upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / outdent-regular-blockquote.html
1 <html>
2 <body>
3 <p>This tests outdenting "two", the second paragraph in a regular blockquote (not created by WebKit).  After outdenting two, there should be exactly two blockquotes.</p>
4 <div id="e" contenteditable="true">
5 <blockquote id="test">one<br>two<br>three</blockquote>
6 </div>
7
8 <ul>
9 <li>Before:<span id="c1"></span></li>
10 <li>After:<span id="c2"></span></li>
11 </ul>
12
13 <script type="text/javascript">
14
15 if (window.layoutTestController)
16     layoutTestController.dumpAsText();
17
18 var e = document.getElementById('e');
19
20 document.getElementById('c1').appendChild(document.createTextNode(e.innerHTML));
21
22 var s = window.getSelection();
23 var r = document.createRange();
24 r.setStart(document.getElementById('test'),2);
25 r.setEnd(document.getElementById('test'),2);
26 s.removeAllRanges();
27 s.addRange(r);
28 document.execCommand("Outdent", false, "");
29
30 document.getElementById('c2').appendChild(document.createTextNode(e.innerHTML));
31
32 </script>