[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.24
[framework/web/webkit-efl.git] / LayoutTests / editing / pasteboard / paste-text-with-style-4.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">This tests copying and pasting text does not remove non-editing style in the destination.
5 To manually test, copy "hello world" below and paste it in the box below. The blue border should stay after the paste.</p>
6 <div id="source" contenteditable><i>hello</i></div>
7 <div id="destination" style="padding:20px;" contenteditable><b style="border: solid 5px blue;padding: 5px;"><br></b></font></div>
8 <script src="../../resources/dump-as-markup.js"></script>
9 <script>
10 if (window.layoutTestController)
11      layoutTestController.dumpAsText();
12
13 Markup.description(document.getElementById('description').textContent);
14
15 Markup.dump('destination', 'Before copy');
16
17 document.getElementById('source').focus();
18 document.execCommand('SelectAll', false, null);
19 document.execCommand('Copy', false, null);
20
21 document.getElementById('destination').focus();
22 document.execCommand('Paste', false, null);
23
24 Markup.dump('destination', 'After paste');
25
26 </script>
27 </body>
28 </html>