| <script src="../../resources/js-test-pre.js"></script> |
| <div id="source" contenteditable="true" oncopy="check(event)">hello</div> |
| <button onclick="runTest()">Start the test</button> |
| description("Tests that DataTransfer's types is initially empty on copy. To manually test, press the button below."); |
| shouldBeEqualToString('JSON.stringify(event.clipboardData.types)', '[]'); |
| const source = document.getElementById('source'); |
| document.execCommand('SelectAll', false, null); |
| document.execCommand('Copy', false, null); |
| source.parentNode.style.display = 'none'; |
| successfullyParsed = true; |
| <script src="../../resources/js-test-post.js"></script> |