blob: 3b74ce487acf1367392ef65e515ab4d1b860ee33 [file] [log] [blame]
<div id="test" onpaste="paste(event)">This test verifies that we can get types from the clipboard
during an onpaste event. This test requires DRT.</div>
<div id="results">FAIL</div>
<script src="../editing.js"></script>
<script>
function paste(ev)
{
var types = ev.clipboardData.types;
if (types.indexOf('text/plain') >= 0 &&
types.indexOf('text/html') >= 0)
document.getElementById("results").innerHTML = "PASS";
}
function editingTest()
{
var selection = window.getSelection();
selection.modify("extend", "forward", "sentence");
copyCommand();
pasteCommand();
}
runDumpAsTextEditingTest(false);
</script>