| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <p>Please run within DRT or enable continuous spell checking and unified text ch
ecker</p> | |
| 3 <input> | |
| 4 <script> | |
| 5 if (window.testRunner) | |
| 6 testRunner.dumpAsText(); | |
| 7 if (window.internals) { | |
| 8 internals.setContinuousSpellCheckingEnabled(true); | |
| 9 internals.settings.setUnifiedTextCheckerEnabled(true); | |
| 10 } | |
| 11 var input = document.querySelector('input'); | |
| 12 var shadowRoot = input.createShadowRoot(); | |
| 13 shadowRoot.appendChild(document.createElement('div')); | |
| 14 input.contentEditable = true; | |
| 15 // Focus to invoke spell checking. | |
| 16 input.focus(); | |
| 17 document.body.textContent = 'PASS if not crashed'; | |
| 18 </script> | |
| 19 </body> | |
| 20 </html> | |
| OLD | NEW |