2 <script src=
"../editing.js"></script>
4 function onpastehandler(event
) {
5 var e
= document
.getElementById('result');
6 e
.innerHTML
= "SUCCESS";
11 // Test to make sure that PasteAndMatchStyle fires the onpaste event.
12 execPasteAndMatchStyleCommand();
14 if (window
.testRunner
)
15 testRunner
.dumpAsText();
19 <body onload='test()' onpaste='onpastehandler(event)'
>
20 <div id='result'
>FAILURE
</div>