Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Side by Side Diff: third_party/WebKit/LayoutTests/editing/inserting/typing-002.html

Issue 2184503003: Convert editing/inserting/typing-00[1-3].html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-26T14:42:22 Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
9 }
10 </style>
11 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script >
12
13 <script>
14
15 function moveNSpacesAndType(n) {
16 for (i = 0; i < n; i++) {
17 moveSelectionForwardByCharacterCommand();
18 }
19 for (i = 0; i < 3; i++) {
20 typeCharacterCommand();
21 }
22 }
23
24 function editingTest() {
25 moveNSpacesAndType(4);
26 }
27
28 </script>
29
30 <title>Editing Test</title>
31 </head>
32 <body>
33 <div contenteditable id="root" class="editing">
34 <span id="test">Foo <i> bar</i></span>
35 </div>
36
37 <script>
38 runEditingTest();
39 </script>
40
41 </body>
42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698