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