upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / paste-and-match-style-event.html
1 <html>
2 <script src="../editing.js"></script>
3 <script>
4 function onpastehandler(event) {
5     var e = document.getElementById('result');
6     e.innerHTML = "SUCCESS";
7 }
8
9 function test() {
10     execCopyCommand();
11     // Test to make sure that PasteAndMatchStyle fires the onpaste event.
12     execPasteAndMatchStyleCommand();
13     
14     if (window.layoutTestController)
15         layoutTestController.dumpAsText();
16 }
17
18 </script>
19 <body onload='test()' onpaste='onpastehandler(event)'>
20 <div id='result'>FAILURE</div>
21 </body>
22 </html>