Gmail reply email - Bold and Italic style get stuck
[WebKit-https.git] / LayoutTests / editing / style / toggle-style-bold-italic.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">Tests bold/italic style toggling on a content that has text node without renderer (Ex: Tab/Space used for indentation)</p>
5 <div contenteditable id="root">
6 <div id="test">
7 <div>Some text</div>
8 <p>Some more text</p>
9 </div>
10 </div>
11 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
12 <script>
13 test('mac');
14 test('win');
15 test('unix');
16 function test(platform) {
17     if (window.internals)
18         internals.settings.setEditingBehavior(platform);
19     startNewMarkupGroup('Test for '+platform);
20     runDumpAsTextEditingTest(true);
21 }
22 function editingTest() {
23     execSelectAllCommand();
24     execBoldCommand();
25     execItalicCommand();
26     execBoldCommand();
27     execItalicCommand();
28 }
29 </script>
30 </body>
31 </html>