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 | |
7 test(() => assert_selection( | |
8 '<div contenteditable id="editor" style="width: 300px; height: 250px; border: 1px solid black"><div><b>^<br></b></div><b>foo|</b></div>', | |
9 selection => { | |
10 var editor = selection.document.getElementById('editor'); | |
yosin_UTC9
2016/08/12 01:37:34
nit: Could you get rid of |var editor = ...| since
joone
2016/08/12 22:12:21
Done.
| |
11 | |
12 selection.document.execCommand('cut'); | |
13 selection.document.execCommand('paste'); | |
14 }, | |
15 '<div contenteditable id="editor" style="width: 300px; height: 250px; border: 1px solid black"><br><div><b>foo|</b></div></div>'), | |
joone
2016/08/10 21:31:31
The layout test result is a bit different from run
| |
16 'Cut all tags and paste them'); | |
17 | |
18 </script> | |
OLD | NEW |