4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
9 function editingTest() {
10 frames
['imageframe'].document
.execCommand('Copy');
11 var s
= window
.getSelection();
12 var e
= document
.getElementById('dest');
14 document
.execCommand('Paste');
15 if (e
.firstChild
.src
.indexOf('#\x22\x3epreserve-fragment') !== -1)
18 alert('FAIL: ' + e
.firstChild
.src
);
19 if (window
.testRunner
)
20 testRunner
.notifyDone();
25 <p>This is an automatic test of copying an image document to ensure
26 that the fragment portion of the URL is properly escaped and hence
27 preserved by the paste operation.
</p>
28 <iframe name=
"imageframe" src=
"../resources/abe.png#">preserve-fragment" onload=
"editingTest()"></iframe>
29 <div id=
"dest" class=
"editable" contenteditable=
"true"></div>