Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 <script src="../../resources/testharness.js"></script> | |
| 3 <script src="../../resources/testharnessreport.js"></script> | |
| 4 <script src="../assert_selection.js"></script> | |
| 5 <script> | |
| 6 test(() => assert_selection( | |
| 7 [ | |
| 8 '<div contenteditable>^foo bar baz.|</div>', | |
| 9 '<div contenteditable id="paste"><br></div>' | |
| 10 ].join(''), | |
| 11 selection => { | |
| 12 const document = selection.document; | |
| 13 document.execCommand('underline'); | |
| 14 document.execCommand('copy'); | |
|
yosin_UTC9
2017/01/11 03:40:05
Since this test doesn't work with interactive sess
Xiaocheng
2017/01/11 05:07:44
Done.
| |
| 15 document.getElementById('paste').focus(); | |
| 16 document.execCommand('paste'); | |
| 17 }, | |
| 18 [ | |
| 19 '<div contenteditable><u>foo bar baz.</u></div>', | |
| 20 '<div contenteditable id="paste"><u>foo bar baz.|</u></div>' | |
| 21 ].join('')), | |
| 22 'Copy/paste underlined text.'); | |
| 23 </script> | |
| OLD | NEW |