| <!DOCTYPE html> |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <script src="../assert_selection.js"></script> |
| <script> |
| selection_test( |
| [ |
| '<div contenteditable>', |
| 'a<span style="white-space:pre">|\t\t\t</span>z', |
| '</div>', |
| ], |
| selection => { |
| if (!window.internals) |
| throw 'This test requires internals.'; |
| selection.setClipboardData('X'); |
| selection.document.execCommand('paste'); |
| }, |
| [ |
| '<div contenteditable>', |
| 'aX|<span style="white-space:pre">\t\t\t</span>z', |
| '</div>', |
| ], |
| 'Paste in tabspan'); |
| </script> |