blob: 82674a4a2fe20d316cf08e132caa5620567fdd4f [file] [log] [blame]
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function editingTest() {
frames['imageframe'].document.execCommand('Copy');
var s = window.getSelection();
var e = document.getElementById('dest');
s.collapse(e, 0);
document.execCommand('Paste');
if (e.firstChild.src.indexOf('#%22%3Epreserve-fragment') !== -1)
alert('PASS');
else
alert('FAIL: ' + e.firstChild.src);
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</head>
<body>
<p>This is an automatic test of copying an image document to ensure
that the fragment portion of the URL is properly escaped and hence
preserved by the paste operation.</p>
<iframe name="imageframe" src="../resources/abe.png#&quot;&gt;preserve-fragment" onload="editingTest()"></iframe>
<div id="dest" class="editable" contenteditable="true"></div>
</body>
</html>