Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / toggle-style-bold-italic-mixed-editability.html
blob224b1360ad744cd8980d169b6aca84e052aed9d3
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">This tests bold/italic style toggling for a content with mixed editability</p>
5 <div contenteditable id="root">
6 <div id="test">
7 Editable <span contenteditable=false>Non-editable</span> Editable
8 </div>
9 </div>
10 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
11 <script>
12 test('mac');
13 test('win');
14 test('unix');
15 function test(platform) {
16 if (window.internals)
17 internals.settings.setEditingBehavior(platform);
18 startNewMarkupGroup('Test for '+platform);
19 runDumpAsTextEditingTest(true);
21 function editingTest() {
22 execSelectAllCommand();
23 execBoldCommand();
24 execItalicCommand();
25 execBoldCommand();
26 execItalicCommand();
28 </script>
29 </body>
30 </html>