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 <div id="log"></div> | |
| 6 <script> | |
| 7 // This test case was added to reproduce the crash reported by ClusterFuzz. | |
|
yosin_UTC9
2016/07/14 01:08:52
We don't need to have this comment, we can use git
joone
2016/07/14 07:06:54
Done.
| |
| 8 // See http://crbug.com/626991 | |
| 9 test(() => { | |
| 10 assert_selection( | |
| 11 '<span><p>^test</p><p>foo<span>bar</span>foo<span>bar</span>.|</p></span >', | |
| 12 selection => { | |
| 13 selection.document.designMode = 'on'; | |
|
yosin_UTC9
2016/07/14 01:08:52
Please enclose a sample with '<div contenteditable
joone
2016/07/14 07:06:54
Done.
| |
| 14 selection.document.execCommand('CreateLink', false, 'foo'); | |
|
yosin_UTC9
2016/07/14 01:08:52
Could you encode result of "createLink" command in
joone
2016/07/14 07:06:54
Done.
yosin_UTC9
2016/07/14 07:53:34
PS#5 still has "createLink", did you forget to upd
| |
| 15 selection.document.execCommand('inserthtml', false, '<span style="colo r:green">green</span>'); | |
| 16 }, | |
| 17 '<span><p><a href="foo"><span style="color:green">green|</span></a></p>< /span>'); | |
| 18 }, 'Replace the selected tags with span tags'); | |
| 19 </script> | |
| OLD | NEW |