upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / 5770834-1.html
1 <div id="description">This tests for a crash when removing format from two paragraphs that are inside blocks with different block properties than the blocks surrounding them. You should see two left aligned paragraphs below. <b>It demonstrates a bug: <a href="rdar://problem/5794382">RemoveFormat doesn't always reset text alignment</a></b></div>
2 <div contentEditable="true" id="edit">
3 <div style="text-align: right;">
4 <div style="text-align: left;">foo<br>bar</div>
5 </div>
6 </div>
7
8 <script>
9 description = document.getElementById("description");
10 edit = document.getElementById("edit");
11 edit.focus();
12 document.execCommand("SelectAll");
13 document.execCommand("RemoveFormat");
14 if (window.layoutTestController) {
15     window.layoutTestController.dumpAsText();
16     document.body.innerText = description.innerText + "\n\n" + edit.innerHTML;
17 }
18 </script>