| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body onload="test(document.getElementById('destination'), document.getElementBy
Id('frame').contentWindow.document);"> | 6 <body onload="test(document.getElementById('destination'), document.getElementBy
Id('frame').contentWindow.document);"> |
| 7 <div id="container"> | 7 <div id="container"> |
| 8 <div id="destination" contentEditable></div> | 8 <div id="destination" contentEditable></div> |
| 9 <iframe id="frame" src="data:text/html,<body contenteditable></body>"></iframe
> | 9 <iframe id="frame" src="data:text/html,<body contenteditable></body>"></iframe
> |
| 10 </div> | 10 </div> |
| 11 | 11 |
| 12 <script> | 12 <script> |
| 13 description("Spell check markers should be removed from the whole page when disa
bling spell checker " | 13 description("Spell check markers should be removed from the whole page when disa
bling spell checker " |
| 14 + "but they should be restored in the focused editable if spell checker gets
enabled. " | 14 + "but they should be restored in the focused editable if spell checker gets
enabled. " |
| 15 + "To test manually, turn spell checker off - misspelling markers should dis
appear. " | 15 + "To test manually, turn spell checker off - misspelling markers should dis
appear. " |
| 16 + "Having the editable focused, turn spell checker on. Misspellings in the e
ditable should be marked."); | 16 + "Having the editable focused, turn spell checker on. Misspellings in the e
ditable should be marked."); |
| 17 | 17 |
| 18 jsTestIsAsync = true; | 18 jsTestIsAsync = true; |
| 19 | 19 |
| 20 function hasSpellingMarkerOnSetting(element, enableSpellChecking) | 20 function hasSpellingMarkerOnSetting(element, enableSpellChecking) |
| 21 { | 21 { |
| 22 internals.setContinuousSpellCheckingEnabled(enableSpellChecking); | 22 internals.setSpellCheckingEnabled(enableSpellChecking); |
| 23 return !!internals.markerCountForNode(element.firstChild, "spelling"); | 23 return !!internals.markerCountForNode(element.firstChild, "spelling"); |
| 24 } | 24 } |
| 25 | 25 |
| 26 var editableDiv = null; | 26 var editableDiv = null; |
| 27 var editableBodyInFrame = null; | 27 var editableBodyInFrame = null; |
| 28 | 28 |
| 29 function test(div, frameDocument) | 29 function test(div, frameDocument) |
| 30 { | 30 { |
| 31 editableDiv = div; | 31 editableDiv = div; |
| 32 editableBodyInFrame = frameDocument.body; | 32 editableBodyInFrame = frameDocument.body; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 55 }); | 55 }); |
| 56 }); | 56 }); |
| 57 }); | 57 }); |
| 58 }); | 58 }); |
| 59 }); | 59 }); |
| 60 } | 60 } |
| 61 | 61 |
| 62 </script> | 62 </script> |
| 63 </body> | 63 </body> |
| 64 </html> | 64 </html> |
| OLD | NEW |