Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / copy-without-selection.html
blobfcd5920f0685b64e8cee410d1fde82cd204d0881
1 <html>
2 <script src="../editing.js"></script>
3 <script>
5 function mycopy(event)
7 event.clipboardData.setData('text/plain', "SUCCESS");
8 event.preventDefault();
11 function mypaste(event)
13 var clip = event.clipboardData.getData('text/plain');
14 document.getElementById('result').innerHTML = clip;
15 event.preventDefault();
18 function test()
20 execCopyCommand();
21 var e = document.getElementById('result');
22 setSelectionCommand(e, 0, e, 0);
23 execPasteCommand();
25 if (window.testRunner)
26 testRunner.dumpAsText();
29 </script>
30 <body onload='test()' onbeforecopy='event.preventDefault()' oncopy='mycopy(event)' onbeforepaste='event.preventDefault()' onpaste='mypaste(event)'>
32 <div id='result' contenteditable='true'>FAILURE</div>
34 </body>
35 </html>