Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / spelling / spellcheck-api-crash.html
blobdeab365c047e62bead49a908f00493a32121ccf9
1 <html>
2 <head>
3 <title></title>
4 <script language="javascript" type="text/javascript">
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 function Test() {
9 var node0 = document.getElementById('test0');
10 if (node0.removeSpellcheckRange)
11 node0.removeSpellcheckRange(null);
12 var node1 = document.getElementById('test1');
13 if (node1.removeSpellcheckRange)
14 node1.removeSpellcheckRange(null);
15 var node2 = document.getElementById('test2');
16 if (node2.removeSpellcheckRange)
17 node2.removeSpellcheckRange(null);
19 </script>
20 </head>
21 <body onload="Test()">
22 <p>This tests thats WebKit does not crash when we call removeSpellcheckRange() with a null parameter. To test manually, open this HTML file and check if the browser can open this file without a crash.</p>
23 <textarea id="test0" rows="10" cols="80">wellcome</textarea><br />
24 <input id="test1" type="text" value="wellcome" /><br />
25 <div id="test2" contenteditable="true">wellcome</div><br />
26 </body>
27 </html>