Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / typing-003.html
blob8cd04226e90a03f5a63c8065006c8f7fe9b1f528
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
10 </style>
11 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
13 <script>
15 function typeWord(n) {
16 for (i = 0; i < n; i++)
17 typeCharacterCommand();
18 typeCharacterCommand(' ');
21 function editingTest() {
22 typeWord(4);
23 typeWord(1);
24 typeWord(2);
25 typeWord(4);
26 typeWord(6);
27 typeWord(5);
28 typeWord(6);
29 typeWord(3);
30 typeWord(2);
31 typeWord(4);
32 typeWord(3);
33 typeWord(3);
34 typeWord(2);
35 typeWord(1);
36 typeWord(5);
37 typeWord(12);
38 typeWord(8);
39 typeWord(3);
40 typeWord(4);
41 typeWord(5);
42 typeWord(2);
43 typeWord(3);
44 typeWord(4);
45 typeWord(4);
46 typeWord(5);
47 typeWord(6);
48 typeWord(3);
49 typeWord(2);
50 typeWord(4);
51 typeWord(3);
52 typeWord(3);
53 typeWord(2);
54 typeWord(6);
55 typeWord(5);
56 typeWord(6);
57 typeWord(3);
58 typeWord(2);
59 typeWord(4);
60 typeWord(3);
61 typeWord(3);
62 typeWord(2);
63 typeWord(1);
64 typeWord(5);
65 typeWord(12);
66 typeWord(8);
67 typeWord(3);
70 </script>
72 <title>Editing Test</title>
73 </head>
74 <body>
75 <div contenteditable id="root" class="editing">
76 <span id="test"></span>
77 </div>
79 <script>
80 runEditingTest();
81 </script>
83 </body>
84 </html>