Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / copy-standalone-image-escaping.html
blobe3fb194aa72421c35380f079f3bc33f09fbe284f
1 <html>
2 <head>
3 <script>
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');
13 s.collapse(e, 0);
14 document.execCommand('Paste');
15 if (e.firstChild.src.indexOf('#\x22\x3epreserve-fragment') !== -1)
16 alert('PASS');
17 else
18 alert('FAIL: ' + e.firstChild.src);
19 if (window.testRunner)
20 testRunner.notifyDone();
22 </script>
23 </head>
24 <body>
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#&quot;&gt;preserve-fragment" onload="editingTest()"></iframe>
29 <div id="dest" class="editable" contenteditable="true"></div>
30 </body>
31 </html>