blob: 018f6697e37f5e6a6ffc955221e43ab656aba045 [file] [log] [blame]
Click here to copy
Click here to copy
Click here to copy
Verifies that programmatic paste is allowed when copied data is from the same origin. To manually test, click or tap the text on the bottom to programmatically copy, and then click or tap the editable area and check that the text is pasted twice.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS document.queryCommandSupported('Paste') is true
PASS document.queryCommandEnabled('Paste') is true
PASS event.clipboardData.getData('text/plain') is "Click here to copy"
PASS document.execCommand('Paste') is true
PASS event.clipboardData.getData('text/plain') is "Click here to copy"
PASS document.execCommand('Paste') is true
PASS editor.textContent is "Click here to copyClick here to copy"
PASS successfullyParsed is true
TEST COMPLETE