Tests: check paste event data.
Extracted textToHtml from insertText and use it in firePasteWithDataTransfer.