blob: 38bbf2aacd84b6fd3082196e2138f77525e16fa3 [file] [log] [blame] [edit]
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
onload = async () => {
visualViewport.onresize = () => {
document.execCommand('InsertNewlineInQuotedContent');
document.write("Test passes if it does not crash.");
if (window.testRunner)
testRunner.notifyDone();
};
document.body.appendChild(document.createElement('object'));
document.body.appendChild(document.createElement('div'));
document.body.appendChild(document.createElement('iframe'));
document.execCommand('SelectAll');
document.designMode = 'on';
document.execCommand('Copy');
document.createElement('img').src = 'a';
let animation = new Animation();
animation.play();
await animation.ready;
document.execCommand('Paste');
document.execCommand('PasteAsQuotation');
getSelection().modify('move', 'left', 'character');
document.execCommand('InsertUnorderedList');
await new Blob().arrayBuffer();
document.execCommand('SelectAll');
document.execCommand('InsertUnorderedList');
};
</script>