Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / spelling / spelling-marker-description.html
blob942b6c25665be78c3cefa77d5eb2226995c2f65e
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <div id="container">
8 <div id="destination" contentEditable></div>
9 </div>
11 <script>
13 function test()
15 jsTestIsAsync = true;
16 internals.settings.setUnifiedTextCheckerEnabled(true);
17 internals.settings.setAsynchronousSpellCheckingEnabled(true);
19 var sel = window.getSelection();
20 var destination = document.getElementById("destination");
21 destination.focus();
22 document.execCommand("InsertHTML", false, "wellcome");
23 document.execCommand("InsertText", false, ".");
25 shouldBecomeEqualToString('internals.markerDescriptionForNode(destination.firstChild, "spelling", 0)', 'welcome', finishJSTest);
28 description("The spellchecker should store replacement text in each marker.");
29 if (window.internals)
30 test();
32 </script>
33 </body>
34 </html>