OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div id="source" contenteditable="true" spellcheck="false">You has the right.</d
iv> | 7 <div id="source" contenteditable="true" spellcheck="false">You has the right.</d
iv> |
8 <div id="target" contenteditable="true" spellcheck="true"></div> | 8 <div id="target" contenteditable="true" spellcheck="true"></div> |
9 | 9 |
10 <script> | 10 <script> |
(...skipping 19 matching lines...) Expand all Loading... |
30 var source = document.getElementById('source'); | 30 var source = document.getElementById('source'); |
31 window.getSelection().selectAllChildren(source); | 31 window.getSelection().selectAllChildren(source); |
32 document.execCommand('Copy'); | 32 document.execCommand('Copy'); |
33 var target = document.getElementById('target'); | 33 var target = document.getElementById('target'); |
34 window.getSelection().selectAllChildren(target); | 34 window.getSelection().selectAllChildren(target); |
35 document.execCommand('Paste'); | 35 document.execCommand('Paste'); |
36 | 36 |
37 shouldBecomeEqual('verifyGrammarMarker(target, "has")', 'true', finishJSTest); | 37 shouldBecomeEqual('verifyGrammarMarker(target, "has")', 'true', finishJSTest); |
38 | 38 |
39 </script> | 39 </script> |
40 <script src="../../fast/js/resources/js-test-post.js"></script> | |
41 </body> | 40 </body> |
42 </html> | 41 </html> |
OLD | NEW |