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="../../resources/js-test.js"></script> |
5 <script src="resources/js-test-selection-shared.js"></script> | 5 <script src="resources/js-test-selection-shared.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <div> | 8 <div> |
9 <div id="src" contenteditable="true" spellcheck="true"></div><br/> | 9 <div id="src" contenteditable="true" spellcheck="true"></div><br/> |
10 <div id="dst" contenteditable="true" spellcheck="false"></div> | 10 <div id="dst" contenteditable="true" spellcheck="false"></div> |
11 </div> | 11 </div> |
12 <script language="javascript"> | 12 <script language="javascript"> |
13 description('Test if WebKit does not spellcheck text when pasting text to an ele
ment having spellchecking disabled. ' + | 13 description('Test if WebKit does not spellcheck text when pasting text to an ele
ment having spellchecking disabled. ' + |
14 'To test manually, copy the text "zz apple" and paste it to the text
area. ' + | 14 'To test manually, copy the text "zz apple" and paste it to the text
area. ' + |
(...skipping 19 matching lines...) Expand all Loading... |
34 document.execCommand('Copy'); | 34 document.execCommand('Copy'); |
35 | 35 |
36 var dstNode = document.getElementById('dst'); | 36 var dstNode = document.getElementById('dst'); |
37 dstNode.focus(); | 37 dstNode.focus(); |
38 document.execCommand('Paste'); | 38 document.execCommand('Paste'); |
39 shouldBecomeDifferent('internals.hasSpellingMarker(document, 0, 2)', 'true', fin
ishJSTest); | 39 shouldBecomeDifferent('internals.hasSpellingMarker(document, 0, 2)', 'true', fin
ishJSTest); |
40 | 40 |
41 </script> | 41 </script> |
42 </body> | 42 </body> |
43 </html> | 43 </html> |
OLD | NEW |