Test fast/writing-mode/english-bt-text-with-spelling-marker.html should wait for...
[WebKit.git] / LayoutTests / fast / writing-mode / english-bt-text-with-spelling-marker-expected.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../editing/editing.js"></script>
5 <style>
6 @font-face {
7     font-family: Ahem;
8     src: url("../../resources/Ahem.ttf");
9 }
10
11 #expected {
12     display: inline-block;
13     position: absolute;
14     top: 0;
15     left: 0;
16     width: 200px;
17     font: 20px/1 Ahem;
18 }
19 </style>
20 </head>
21 <body>
22 <div id="expected" contenteditable="true"></div>
23 <script>
24 var expected = document.getElementById("expected");
25
26 // When inserting multiple words we need to type each character in order for the spell checker to be triggered.
27 typeText("mispelled a", expected);
28
29 function typeText(text, element)
30 {
31     element.focus();
32     for (const c of text)
33         typeCharacterCommand(c);
34     element.blur();
35 }
36 </script>
37 </body>
38 </html>