blob: 988f8631eb0799a189e698b6d95df2613676de17 [file] [log] [blame]
<body oncopy="log('oncopy fired'); return false;" oncut="log('oncut fired'); return false" onpaste="log('onpaste fired'); return false">
This tests to see if Copy, Cut, and Paste fire oncopy, oncut and onpaste even when those operations are disabled. Since they are disabled they can't be performed from the Edit menu, they need to be explicitly performed via execCommand or -[WebView copy:].
<ul id="console"></ul>
<script>
function log(msg) {
console = document.getElementById("console");
li = document.createElement("li");
text = document.createTextNode(msg);
console.appendChild(li);
li.appendChild(text);
}
if (window.testRunner)
testRunner.dumpAsText();
document.execCommand("Copy");
document.execCommand("Cut");
document.execCommand("Paste");
</script>
</body>