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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/inserting/insert_div_with_attr.html

Issue 2176113002: Convert editing/inserting/insert-div-01[1-7].html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-25T15:18:37 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 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
5 <script>
6 test(() => assert_selection(
7 [
8 '<div contenteditable>',
9 '<div style="height: 12px"></div>',
10 '<div spellcheck="false">|baz</div>bar',
11 '<div>foo</div>',
12 '<div><br class="xyz"></div>',
13 '</div>',
14 ].join(''),
15 'insertParagraph',
16 [
17 '<div contenteditable>',
18 '<div style="height: 12px"></div>',
19 '<div spellcheck="false"><br></div>',
20 '<div spellcheck="false">|baz</div>bar',
21 '<div>foo</div>',
22 '<div><br class="xyz"></div>',
23 '</div>',
24 ].join('')),
25 'insert DIV+BR with attribute before "baz"');
26
27 test(() => assert_selection(
28 [
29 '<div contenteditable>',
30 '<div style="height: 12px"></div>',
31 '<div spellcheck="false">baz|</div>bar',
32 '<div>foo</div>',
33 '<div><br class="xyz"></div>',
34 '</div>',
35 ].join(''),
36 'insertParagraph',
37 [
38 '<div contenteditable>',
39 '<div style="height: 12px"></div>',
40 '<div spellcheck="false">baz</div>',
41 '<div spellcheck="false">|<br></div>bar',
42 '<div>foo</div>',
43 '<div><br class="xyz"></div>',
44 '</div>',
45 ].join('')),
46 'insert DIV+BR with attribute after "baz"');
47
48 test(() => assert_selection(
49 [
50 '<div contenteditable>',
51 '<div style="height: 12px"></div>',
52 '<div spellcheck="false">baz</div>|bar',
53 '<div>foo</div>',
54 '<div><br class="xyz"></div>',
55 '</div>',
56 ].join(''),
57 'insertParagraph',
58 [
59 '<div contenteditable>',
60 '<div style="height: 12px"></div>',
61 '<div spellcheck="false">baz</div>',
62 '<div><br></div>|bar',
63 '<div>foo</div>',
64 '<div><br class="xyz"></div>',
65 '</div>',
66 ].join('')),
67 'insert DIV+BR without attribute before "bar"');
68
69 test(() => assert_selection(
70 [
71 '<div contenteditable>',
72 '<div style="height: 12px"></div>',
73 '<div spellcheck="false">baz</div>bar|',
74 '<div>foo</div>',
75 '<div><br class="xyz"></div>',
76 '</div>',
77 ].join(''),
78 'insertParagraph',
79 [
80 '<div contenteditable>',
81 '<div style="height: 12px"></div>',
82 '<div spellcheck="false">baz</div>bar',
83 '<div>|<br>',
84 '<div>foo</div>',
85 '<div><br class="xyz"></div>',
86 '</div>',
87 '</div>',
88 ].join('')),
89 'insert DIV+BR without attribute after "bar"');
90
91 test(() => assert_selection(
92 [
93 '<div contenteditable>',
94 '<div style="height: 12px"></div>',
95 '<div spellcheck="false">baz</div>bar',
96 '<div>|foo</div>',
97 '<div><br class="xyz"></div>',
98 '</div>',
99 ].join(''),
100 'insertParagraph',
101 [
102 '<div contenteditable>',
103 '<div style="height: 12px"></div>',
104 '<div spellcheck="false">baz</div>bar',
105 '<div><br></div>',
106 '<div>|foo</div>',
107 '<div><br class="xyz"></div>',
108 '</div>',
109 ].join('')),
110 'insert DIV+BR without attribute before "foo"')
111
112 test(() => assert_selection(
113 [
114 '<div contenteditable>',
115 '<div style="height: 12px"></div>',
116 '<div spellcheck="false">baz</div>bar',
117 '<div>foo|</div>',
118 '<div><br class="xyz"></div>',
119 '</div>',
120 ].join(''),
121 'insertParagraph',
122 [
123 '<div contenteditable>',
124 '<div style="height: 12px"></div>',
125 '<div spellcheck="false">baz</div>bar',
126 '<div>foo</div>',
127 '<div>|<br></div>',
128 '<div><br class="xyz"></div>',
129 '</div>',
130 ].join('')),
131 'insert DIV+BR without attribute after "foo"')
132
133 test(() => assert_selection(
134 [
135 '<div contenteditable>',
136 '<div style="height: 12px"></div>',
137 '<div spellcheck="false">baz</div>bar',
138 '<div>foo</div>',
139 '<div>|<br class="xyz"></div>',
140 '</div>',
141 ].join(''),
142 'insertParagraph',
143 [
144 '<div contenteditable>',
145 '<div style="height: 12px"></div>',
146 '<div spellcheck="false">baz</div>bar',
147 '<div>foo</div>',
148 '<div><br class="xyz"></div>',
149 '<div>|<br></div>',
150 '</div>',
151 ].join('')),
152 'insert DIV+BR without attribute after BR')
153 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698