blob: 28268f575c3558335d0f80ace1915f34a3c96566 [file] [log] [blame]
mmaxfield@apple.com9d9e71f2014-04-11 21:35:17 +00001<!DOCTYPE html>
2<html>
3<body>
4<ol>
5<li>Type "word loadp" in the first box.</li>
6<li>When the suggestion popup appears, click in the second box.</li>
7</ol>
8<p>
9This test triggers a codepath when we are trying to determine a range around
10the new correction word. We were remembering the location for the new word
11by creating a Range from the beginning of the document to the beginning of
12the new word. However, since the word is inside a shadow root, this Range
13would collapse and be meaningless. Further processing using the range would
14trigger ASSERTs and crash.
15</p>
16<p>
17The test is successful if there is no crash.
18</p>
19<input id="t" type="text" spellCheck="true">
20<textarea id="a"></textarea>
21</body>
22</html>