OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <p id="description">This tests bold/italic style toggling for a content with mix
ed 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); |
| 20 } |
| 21 function editingTest() { |
| 22 execSelectAllCommand(); |
| 23 execBoldCommand(); |
| 24 execItalicCommand(); |
| 25 execBoldCommand(); |
| 26 execItalicCommand(); |
| 27 } |
| 28 </script> |
| 29 </body> |
| 30 </html> |
OLD | NEW |