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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/editing/data/removeformat.js

Issue 2630243004: Manually import wpt/editing and wpt/selection/ (Closed)
Patch Set: Add expectation Created 3 years, 11 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 var browserTests = [
2 ["foo[]bar",
3 [["removeformat",""]],
4 "foo[]bar",
5 [true],
6 {"removeformat":[false,false,"",false,false,""]}],
7 ["<span>foo</span>{}<span>bar</span>",
8 [["removeformat",""]],
9 "<span>foo</span>{}<span>bar</span>",
10 [true],
11 {"removeformat":[false,false,"",false,false,""]}],
12 ["<span>foo[</span><span>]bar</span>",
13 [["removeformat",""]],
14 "<span>foo[</span><span>]bar</span>",
15 [true],
16 {"removeformat":[false,false,"",false,false,""]}],
17 ["[foo<b>bar</b>baz]",
18 [["stylewithcss","true"],["removeformat",""]],
19 "[foobarbaz]",
20 [true,true],
21 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
22 ["[foo<b>bar</b>baz]",
23 [["stylewithcss","false"],["removeformat",""]],
24 "[foobarbaz]",
25 [true,true],
26 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
27 ["foo[<b>bar</b>baz]",
28 [["stylewithcss","true"],["removeformat",""]],
29 "foo[barbaz]",
30 [true,true],
31 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
32 ["foo[<b>bar</b>baz]",
33 [["stylewithcss","false"],["removeformat",""]],
34 "foo[barbaz]",
35 [true,true],
36 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
37 ["foo[<b>bar</b>]baz",
38 [["stylewithcss","true"],["removeformat",""]],
39 "foo[bar]baz",
40 [true,true],
41 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
42 ["foo[<b>bar</b>]baz",
43 [["stylewithcss","false"],["removeformat",""]],
44 "foo[bar]baz",
45 [true,true],
46 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
47 ["foo<b>[bar]</b>baz",
48 [["stylewithcss","true"],["removeformat",""]],
49 "foo[bar]baz",
50 [true,true],
51 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
52 ["foo<b>[bar]</b>baz",
53 [["stylewithcss","false"],["removeformat",""]],
54 "foo[bar]baz",
55 [true,true],
56 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
57 ["foo<b>b[a]r</b>baz",
58 [["stylewithcss","true"],["removeformat",""]],
59 "foo<b>b</b>[a]<b>r</b>baz",
60 [true,true],
61 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
62 ["foo<b>b[a]r</b>baz",
63 [["stylewithcss","false"],["removeformat",""]],
64 "foo<b>b</b>[a]<b>r</b>baz",
65 [true,true],
66 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
67 ["[foo<strong>bar</strong>baz]",
68 [["removeformat",""]],
69 "[foobarbaz]",
70 [true],
71 {"removeformat":[false,false,"",false,false,""]}],
72 ["[foo<span style=\"font-weight: bold\">bar</span>baz]",
73 [["stylewithcss","true"],["removeformat",""]],
74 "[foobarbaz]",
75 [true,true],
76 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
77 ["[foo<span style=\"font-weight: bold\">bar</span>baz]",
78 [["stylewithcss","false"],["removeformat",""]],
79 "[foobarbaz]",
80 [true,true],
81 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
82 ["foo<span style=\"font-weight: bold\">b[a]r</span>baz",
83 [["stylewithcss","true"],["removeformat",""]],
84 "foo<span style=\"font-weight:bold\">b</span>[a]<span style=\"font-weight:bo ld\">r</span>baz",
85 [true,true],
86 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
87 ["foo<span style=\"font-weight: bold\">b[a]r</span>baz",
88 [["stylewithcss","false"],["removeformat",""]],
89 "foo<span style=\"font-weight:bold\">b</span>[a]<span style=\"font-weight:bo ld\">r</span>baz",
90 [true,true],
91 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
92 ["[foo<span style=\"font-variant: small-caps\">bar</span>baz]",
93 [["stylewithcss","true"],["removeformat",""]],
94 "[foobarbaz]",
95 [true,true],
96 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
97 ["[foo<span style=\"font-variant: small-caps\">bar</span>baz]",
98 [["stylewithcss","false"],["removeformat",""]],
99 "[foobarbaz]",
100 [true,true],
101 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
102 ["foo<span style=\"font-variant: small-caps\">b[a]r</span>baz",
103 [["stylewithcss","true"],["removeformat",""]],
104 "foo<span style=\"font-variant:small-caps\">b</span>[a]<span style=\"font-va riant:small-caps\">r</span>baz",
105 [true,true],
106 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
107 ["foo<span style=\"font-variant: small-caps\">b[a]r</span>baz",
108 [["stylewithcss","false"],["removeformat",""]],
109 "foo<span style=\"font-variant:small-caps\">b</span>[a]<span style=\"font-va riant:small-caps\">r</span>baz",
110 [true,true],
111 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
112 ["[foo<b id=foo>bar</b>baz]",
113 [["stylewithcss","true"],["removeformat",""]],
114 "[foobarbaz]",
115 [true,true],
116 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
117 ["[foo<b id=foo>bar</b>baz]",
118 [["stylewithcss","false"],["removeformat",""]],
119 "[foobarbaz]",
120 [true,true],
121 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
122 ["foo<b id=foo>b[a]r</b>baz",
123 [["stylewithcss","true"],["removeformat",""]],
124 "foo<b id=\"foo\">b</b>[a]<b>r</b>baz",
125 [true,true],
126 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
127 ["foo<b id=foo>b[a]r</b>baz",
128 [["stylewithcss","false"],["removeformat",""]],
129 "foo<b id=\"foo\">b</b>[a]<b>r</b>baz",
130 [true,true],
131 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
132 ["[foo<a>bar</a>baz]",
133 [["removeformat",""]],
134 "[foo<a>bar</a>baz]",
135 [true],
136 {"removeformat":[false,false,"",false,false,""]}],
137 ["foo<a>b[a]r</a>baz",
138 [["removeformat",""]],
139 "foo<a>b[a]r</a>baz",
140 [true],
141 {"removeformat":[false,false,"",false,false,""]}],
142 ["[foo<a href=foo>bar</a>baz]",
143 [["removeformat",""]],
144 "[foo<a href=\"foo\">bar</a>baz]",
145 [true],
146 {"removeformat":[false,false,"",false,false,""]}],
147 ["foo<a href=foo>b[a]r</a>baz",
148 [["removeformat",""]],
149 "foo<a href=\"foo\">b[a]r</a>baz",
150 [true],
151 {"removeformat":[false,false,"",false,false,""]}],
152 ["[foo<abbr>bar</abbr>baz]",
153 [["removeformat",""]],
154 "[foobarbaz]",
155 [true],
156 {"removeformat":[false,false,"",false,false,""]}],
157 ["foo<abbr>b[a]r</abbr>baz",
158 [["removeformat",""]],
159 "foo<abbr>b</abbr>[a]<abbr>r</abbr>baz",
160 [true],
161 {"removeformat":[false,false,"",false,false,""]}],
162 ["[foo<acronym>bar</acronym>baz]",
163 [["removeformat",""]],
164 "[foobarbaz]",
165 [true],
166 {"removeformat":[false,false,"",false,false,""]}],
167 ["foo<acronym>b[a]r</acronym>baz",
168 [["removeformat",""]],
169 "foo<acronym>b</acronym>[a]<acronym>r</acronym>baz",
170 [true],
171 {"removeformat":[false,false,"",false,false,""]}],
172 ["[foo<b>bar</b>baz]",
173 [["stylewithcss","true"],["removeformat",""]],
174 "[foobarbaz]",
175 [true,true],
176 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
177 ["[foo<b>bar</b>baz]",
178 [["stylewithcss","false"],["removeformat",""]],
179 "[foobarbaz]",
180 [true,true],
181 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
182 ["foo<b>b[a]r</b>baz",
183 [["stylewithcss","true"],["removeformat",""]],
184 "foo<b>b</b>[a]<b>r</b>baz",
185 [true,true],
186 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
187 ["foo<b>b[a]r</b>baz",
188 [["stylewithcss","false"],["removeformat",""]],
189 "foo<b>b</b>[a]<b>r</b>baz",
190 [true,true],
191 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
192 ["[foo<bdi dir=rtl>bar</bdi>baz]",
193 [["removeformat",""]],
194 "[foobarbaz]",
195 [true],
196 {"removeformat":[false,false,"",false,false,""]}],
197 ["foo<bdi dir=rtl>b[a]r</bdi>baz",
198 [["removeformat",""]],
199 "foo<bdi dir=\"rtl\">b</bdi>[a]<bdi dir=\"rtl\">r</bdi>baz",
200 [true],
201 {"removeformat":[false,false,"",false,false,""]}],
202 ["[foo<bdo dir=rtl>bar</bdo>baz]",
203 [["removeformat",""]],
204 "[foobarbaz]",
205 [true],
206 {"removeformat":[false,false,"",false,false,""]}],
207 ["foo<bdo dir=rtl>b[a]r</bdo>baz",
208 [["removeformat",""]],
209 "foo<bdo dir=\"rtl\">b</bdo>[a]<bdo dir=\"rtl\">r</bdo>baz",
210 [true],
211 {"removeformat":[false,false,"",false,false,""]}],
212 ["[foo<big>bar</big>baz]",
213 [["removeformat",""]],
214 "[foobarbaz]",
215 [true],
216 {"removeformat":[false,false,"",false,false,""]}],
217 ["foo<big>b[a]r</big>baz",
218 [["removeformat",""]],
219 "foo<big>b</big>[a]<big>r</big>baz",
220 [true],
221 {"removeformat":[false,false,"",false,false,""]}],
222 ["[foo<blink>bar</blink>baz]",
223 [["removeformat",""]],
224 "[foobarbaz]",
225 [true],
226 {"removeformat":[false,false,"",false,false,""]}],
227 ["foo<blink>b[a]r</blink>baz",
228 [["removeformat",""]],
229 "foo<blink>b</blink>[a]<blink>r</blink>baz",
230 [true],
231 {"removeformat":[false,false,"",false,false,""]}],
232 ["[foo<cite>bar</cite>baz]",
233 [["removeformat",""]],
234 "[foobarbaz]",
235 [true],
236 {"removeformat":[false,false,"",false,false,""]}],
237 ["foo<cite>b[a]r</cite>baz",
238 [["removeformat",""]],
239 "foo<cite>b</cite>[a]<cite>r</cite>baz",
240 [true],
241 {"removeformat":[false,false,"",false,false,""]}],
242 ["[foo<code>bar</code>baz]",
243 [["removeformat",""]],
244 "[foobarbaz]",
245 [true],
246 {"removeformat":[false,false,"",false,false,""]}],
247 ["foo<code>b[a]r</code>baz",
248 [["removeformat",""]],
249 "foo<code>b</code>[a]<code>r</code>baz",
250 [true],
251 {"removeformat":[false,false,"",false,false,""]}],
252 ["[foo<del>bar</del>baz]",
253 [["removeformat",""]],
254 "[foo<del>bar</del>baz]",
255 [true],
256 {"removeformat":[false,false,"",false,false,""]}],
257 ["foo<del>b[a]r</del>baz",
258 [["removeformat",""]],
259 "foo<del>b[a]r</del>baz",
260 [true],
261 {"removeformat":[false,false,"",false,false,""]}],
262 ["[foo<dfn>bar</dfn>baz]",
263 [["removeformat",""]],
264 "[foobarbaz]",
265 [true],
266 {"removeformat":[false,false,"",false,false,""]}],
267 ["foo<dfn>b[a]r</dfn>baz",
268 [["removeformat",""]],
269 "foo<dfn>b</dfn>[a]<dfn>r</dfn>baz",
270 [true],
271 {"removeformat":[false,false,"",false,false,""]}],
272 ["[foo<em>bar</em>baz]",
273 [["removeformat",""]],
274 "[foobarbaz]",
275 [true],
276 {"removeformat":[false,false,"",false,false,""]}],
277 ["foo<em>b[a]r</em>baz",
278 [["removeformat",""]],
279 "foo<em>b</em>[a]<em>r</em>baz",
280 [true],
281 {"removeformat":[false,false,"",false,false,""]}],
282 ["[foo<font>bar</font>baz]",
283 [["stylewithcss","true"],["removeformat",""]],
284 "[foobarbaz]",
285 [true,true],
286 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
287 ["[foo<font>bar</font>baz]",
288 [["stylewithcss","false"],["removeformat",""]],
289 "[foobarbaz]",
290 [true,true],
291 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
292 ["foo<font>b[a]r</font>baz",
293 [["stylewithcss","true"],["removeformat",""]],
294 "foo<font>b</font>[a]<font>r</font>baz",
295 [true,true],
296 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
297 ["foo<font>b[a]r</font>baz",
298 [["stylewithcss","false"],["removeformat",""]],
299 "foo<font>b</font>[a]<font>r</font>baz",
300 [true,true],
301 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
302 ["[foo<font color=blue>bar</font>baz]",
303 [["stylewithcss","true"],["removeformat",""]],
304 "[foobarbaz]",
305 [true,true],
306 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
307 ["[foo<font color=blue>bar</font>baz]",
308 [["stylewithcss","false"],["removeformat",""]],
309 "[foobarbaz]",
310 [true,true],
311 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
312 ["foo<font color=blue>b[a]r</font>baz",
313 [["stylewithcss","true"],["removeformat",""]],
314 "foo<font color=\"blue\">b</font>[a]<font color=\"blue\">r</font>baz",
315 [true,true],
316 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
317 ["foo<font color=blue>b[a]r</font>baz",
318 [["stylewithcss","false"],["removeformat",""]],
319 "foo<font color=\"blue\">b</font>[a]<font color=\"blue\">r</font>baz",
320 [true,true],
321 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
322 ["[foo<i>bar</i>baz]",
323 [["stylewithcss","true"],["removeformat",""]],
324 "[foobarbaz]",
325 [true,true],
326 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
327 ["[foo<i>bar</i>baz]",
328 [["stylewithcss","false"],["removeformat",""]],
329 "[foobarbaz]",
330 [true,true],
331 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
332 ["foo<i>b[a]r</i>baz",
333 [["stylewithcss","true"],["removeformat",""]],
334 "foo<i>b</i>[a]<i>r</i>baz",
335 [true,true],
336 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
337 ["foo<i>b[a]r</i>baz",
338 [["stylewithcss","false"],["removeformat",""]],
339 "foo<i>b</i>[a]<i>r</i>baz",
340 [true,true],
341 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
342 ["[foo<ins>bar</ins>baz]",
343 [["removeformat",""]],
344 "[foobarbaz]",
345 [true],
346 {"removeformat":[false,false,"",false,false,""]}],
347 ["foo<ins>b[a]r</ins>baz",
348 [["removeformat",""]],
349 "foo<ins>b</ins>[a]<ins>r</ins>baz",
350 [true],
351 {"removeformat":[false,false,"",false,false,""]}],
352 ["[foo<kbd>bar</kbd>baz]",
353 [["removeformat",""]],
354 "[foobarbaz]",
355 [true],
356 {"removeformat":[false,false,"",false,false,""]}],
357 ["foo<kbd>b[a]r</kbd>baz",
358 [["removeformat",""]],
359 "foo<kbd>b</kbd>[a]<kbd>r</kbd>baz",
360 [true],
361 {"removeformat":[false,false,"",false,false,""]}],
362 ["[foo<mark>bar</mark>baz]",
363 [["removeformat",""]],
364 "[foobarbaz]",
365 [true],
366 {"removeformat":[false,false,"",false,false,""]}],
367 ["foo<mark>b[a]r</mark>baz",
368 [["removeformat",""]],
369 "foo<mark>b</mark>[a]<mark>r</mark>baz",
370 [true],
371 {"removeformat":[false,false,"",false,false,""]}],
372 ["[foo<nobr>bar</nobr>baz]",
373 [["removeformat",""]],
374 "[foobarbaz]",
375 [true],
376 {"removeformat":[false,false,"",false,false,""]}],
377 ["foo<nobr>b[a]r</nobr>baz",
378 [["removeformat",""]],
379 "foo<nobr>b</nobr>[a]<nobr>r</nobr>baz",
380 [true],
381 {"removeformat":[false,false,"",false,false,""]}],
382 ["[foo<q>bar</q>baz]",
383 [["removeformat",""]],
384 "[foobarbaz]",
385 [true],
386 {"removeformat":[false,false,"",false,false,""]}],
387 ["foo<q>b[a]r</q>baz",
388 [["removeformat",""]],
389 "foo<q>b</q>[a]<q>r</q>baz",
390 [true],
391 {"removeformat":[false,false,"",false,false,""]}],
392 ["[foo<samp>bar</samp>baz]",
393 [["removeformat",""]],
394 "[foobarbaz]",
395 [true],
396 {"removeformat":[false,false,"",false,false,""]}],
397 ["foo<samp>b[a]r</samp>baz",
398 [["removeformat",""]],
399 "foo<samp>b</samp>[a]<samp>r</samp>baz",
400 [true],
401 {"removeformat":[false,false,"",false,false,""]}],
402 ["[foo<s>bar</s>baz]",
403 [["stylewithcss","true"],["removeformat",""]],
404 "[foobarbaz]",
405 [true,true],
406 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
407 ["[foo<s>bar</s>baz]",
408 [["stylewithcss","false"],["removeformat",""]],
409 "[foobarbaz]",
410 [true,true],
411 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
412 ["foo<s>b[a]r</s>baz",
413 [["stylewithcss","true"],["removeformat",""]],
414 "foo<s>b</s>[a]<s>r</s>baz",
415 [true,true],
416 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
417 ["foo<s>b[a]r</s>baz",
418 [["stylewithcss","false"],["removeformat",""]],
419 "foo<s>b</s>[a]<s>r</s>baz",
420 [true,true],
421 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
422 ["[foo<small>bar</small>baz]",
423 [["removeformat",""]],
424 "[foobarbaz]",
425 [true],
426 {"removeformat":[false,false,"",false,false,""]}],
427 ["foo<small>b[a]r</small>baz",
428 [["removeformat",""]],
429 "foo<small>b</small>[a]<small>r</small>baz",
430 [true],
431 {"removeformat":[false,false,"",false,false,""]}],
432 ["[foo<span>bar</span>baz]",
433 [["removeformat",""]],
434 "[foobarbaz]",
435 [true],
436 {"removeformat":[false,false,"",false,false,""]}],
437 ["foo<span>b[a]r</span>baz",
438 [["removeformat",""]],
439 "foo<span>b</span>[a]<span>r</span>baz",
440 [true],
441 {"removeformat":[false,false,"",false,false,""]}],
442 ["[foo<strike>bar</strike>baz]",
443 [["stylewithcss","true"],["removeformat",""]],
444 "[foobarbaz]",
445 [true,true],
446 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
447 ["[foo<strike>bar</strike>baz]",
448 [["stylewithcss","false"],["removeformat",""]],
449 "[foobarbaz]",
450 [true,true],
451 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
452 ["foo<strike>b[a]r</strike>baz",
453 [["stylewithcss","true"],["removeformat",""]],
454 "foo<strike>b</strike>[a]<strike>r</strike>baz",
455 [true,true],
456 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
457 ["foo<strike>b[a]r</strike>baz",
458 [["stylewithcss","false"],["removeformat",""]],
459 "foo<strike>b</strike>[a]<strike>r</strike>baz",
460 [true,true],
461 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
462 ["[foo<strong>bar</strong>baz]",
463 [["removeformat",""]],
464 "[foobarbaz]",
465 [true],
466 {"removeformat":[false,false,"",false,false,""]}],
467 ["foo<strong>b[a]r</strong>baz",
468 [["removeformat",""]],
469 "foo<strong>b</strong>[a]<strong>r</strong>baz",
470 [true],
471 {"removeformat":[false,false,"",false,false,""]}],
472 ["[foo<sub>bar</sub>baz]",
473 [["stylewithcss","true"],["removeformat",""]],
474 "[foobarbaz]",
475 [true,true],
476 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
477 ["[foo<sub>bar</sub>baz]",
478 [["stylewithcss","false"],["removeformat",""]],
479 "[foobarbaz]",
480 [true,true],
481 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
482 ["foo<sub>b[a]r</sub>baz",
483 [["stylewithcss","true"],["removeformat",""]],
484 "foo<sub>b</sub>[a]<sub>r</sub>baz",
485 [true,true],
486 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
487 ["foo<sub>b[a]r</sub>baz",
488 [["stylewithcss","false"],["removeformat",""]],
489 "foo<sub>b</sub>[a]<sub>r</sub>baz",
490 [true,true],
491 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
492 ["[foo<sup>bar</sup>baz]",
493 [["stylewithcss","true"],["removeformat",""]],
494 "[foobarbaz]",
495 [true,true],
496 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
497 ["[foo<sup>bar</sup>baz]",
498 [["stylewithcss","false"],["removeformat",""]],
499 "[foobarbaz]",
500 [true,true],
501 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
502 ["foo<sup>b[a]r</sup>baz",
503 [["stylewithcss","true"],["removeformat",""]],
504 "foo<sup>b</sup>[a]<sup>r</sup>baz",
505 [true,true],
506 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
507 ["foo<sup>b[a]r</sup>baz",
508 [["stylewithcss","false"],["removeformat",""]],
509 "foo<sup>b</sup>[a]<sup>r</sup>baz",
510 [true,true],
511 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
512 ["[foo<tt>bar</tt>baz]",
513 [["removeformat",""]],
514 "[foobarbaz]",
515 [true],
516 {"removeformat":[false,false,"",false,false,""]}],
517 ["foo<tt>b[a]r</tt>baz",
518 [["removeformat",""]],
519 "foo<tt>b</tt>[a]<tt>r</tt>baz",
520 [true],
521 {"removeformat":[false,false,"",false,false,""]}],
522 ["[foo<u>bar</u>baz]",
523 [["stylewithcss","true"],["removeformat",""]],
524 "[foobarbaz]",
525 [true,true],
526 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
527 ["[foo<u>bar</u>baz]",
528 [["stylewithcss","false"],["removeformat",""]],
529 "[foobarbaz]",
530 [true,true],
531 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
532 ["foo<u>b[a]r</u>baz",
533 [["stylewithcss","true"],["removeformat",""]],
534 "foo<u>b</u>[a]<u>r</u>baz",
535 [true,true],
536 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
537 ["foo<u>b[a]r</u>baz",
538 [["stylewithcss","false"],["removeformat",""]],
539 "foo<u>b</u>[a]<u>r</u>baz",
540 [true,true],
541 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
542 ["[foo<var>bar</var>baz]",
543 [["removeformat",""]],
544 "[foobarbaz]",
545 [true],
546 {"removeformat":[false,false,"",false,false,""]}],
547 ["foo<var>b[a]r</var>baz",
548 [["removeformat",""]],
549 "foo<var>b</var>[a]<var>r</var>baz",
550 [true],
551 {"removeformat":[false,false,"",false,false,""]}],
552 ["[foo<br>bar]",
553 [["removeformat",""]],
554 "[foo<br>bar]",
555 [true],
556 {"removeformat":[false,false,"",false,false,""]}],
557 ["[foo<hr>bar]",
558 [["removeformat",""]],
559 "[foo<hr>bar]",
560 [true],
561 {"removeformat":[false,false,"",false,false,""]}],
562 ["[foo<wbr>bar]",
563 [["removeformat",""]],
564 "[foo<wbr>bar]",
565 [true],
566 {"removeformat":[false,false,"",false,false,""]}],
567 ["[foo<img>bar]",
568 [["removeformat",""]],
569 "[foo<img>bar]",
570 [true],
571 {"removeformat":[false,false,"",false,false,""]}],
572 ["[foo<img src=abc>bar]",
573 [["removeformat",""]],
574 "[foo<img src=\"abc\">bar]",
575 [true],
576 {"removeformat":[false,false,"",false,false,""]}],
577 ["[foo<video></video>bar]",
578 [["removeformat",""]],
579 "[foo<video></video>bar]",
580 [true],
581 {"removeformat":[false,false,"",false,false,""]}],
582 ["[foo<video src=abc></video>bar]",
583 [["removeformat",""]],
584 "[foo<video src=\"abc\"></video>bar]",
585 [true],
586 {"removeformat":[false,false,"",false,false,""]}],
587 ["[foo<svg><circle fill=blue r=20 cx=20 cy=20 /></svg>bar]",
588 [["removeformat",""]],
589 "[foo<svg><circle fill=\"blue\" r=\"20\" cx=\"20\" cy=\"20\"></circle></svg> bar]",
590 [true],
591 {"removeformat":[false,false,"",false,false,""]}],
592 ["[foo<nonexistentelement>bar</nonexistentelement>baz]",
593 [["removeformat",""]],
594 "[foo<nonexistentelement>bar</nonexistentelement>baz]",
595 [true],
596 {"removeformat":[false,false,"",false,false,""]}],
597 ["foo<nonexistentelement>b[a]r</nonexistentelement>baz",
598 [["removeformat",""]],
599 "foo<nonexistentelement>b[a]r</nonexistentelement>baz",
600 [true],
601 {"removeformat":[false,false,"",false,false,""]}],
602 ["[foo<nonexistentelement style=\"display: block\">bar</nonexistentelement>baz]" ,
603 [["removeformat",""]],
604 "[foo<nonexistentelement style=\"display:block\">bar</nonexistentelement>baz ]",
605 [true],
606 {"removeformat":[false,false,"",false,false,""]}],
607 ["foo<nonexistentelement style=\"display: block\">b[a]r</nonexistentelement>baz" ,
608 [["removeformat",""]],
609 "foo<nonexistentelement style=\"display:block\">b[a]r</nonexistentelement>ba z",
610 [true],
611 {"removeformat":[false,false,"",false,false,""]}],
612 ["[foo<span id=foo>bar</span>baz]",
613 [["removeformat",""]],
614 "[foobarbaz]",
615 [true],
616 {"removeformat":[false,false,"",false,false,""]}],
617 ["foo<span id=foo>b[a]r</span>baz",
618 [["removeformat",""]],
619 "foo<span id=\"foo\">b</span>[a]<span>r</span>baz",
620 [true],
621 {"removeformat":[false,false,"",false,false,""]}],
622 ["[foo<span class=foo>bar</span>baz]",
623 [["removeformat",""]],
624 "[foobarbaz]",
625 [true],
626 {"removeformat":[false,false,"",false,false,""]}],
627 ["foo<span class=foo>b[a]r</span>baz",
628 [["removeformat",""]],
629 "foo<span class=\"foo\">b</span>[a]<span class=\"foo\">r</span>baz",
630 [true],
631 {"removeformat":[false,false,"",false,false,""]}],
632 ["[foo<b style=\"font-weight: normal\">bar</b>baz]",
633 [["stylewithcss","true"],["removeformat",""]],
634 "[foobarbaz]",
635 [true,true],
636 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
637 ["[foo<b style=\"font-weight: normal\">bar</b>baz]",
638 [["stylewithcss","false"],["removeformat",""]],
639 "[foobarbaz]",
640 [true,true],
641 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
642 ["foo<b style=\"font-weight: normal\">b[a]r</b>baz",
643 [["stylewithcss","true"],["removeformat",""]],
644 "foo<b style=\"font-weight:normal\">b</b>[a]<b style=\"font-weight:normal\"> r</b>baz",
645 [true,true],
646 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
647 ["foo<b style=\"font-weight: normal\">b[a]r</b>baz",
648 [["stylewithcss","false"],["removeformat",""]],
649 "foo<b style=\"font-weight:normal\">b</b>[a]<b style=\"font-weight:normal\"> r</b>baz",
650 [true,true],
651 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
652 ["<p style=\"background-color: aqua\">foo[bar]baz</p>",
653 [["removeformat",""]],
654 "<p style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</p>",
655 [true],
656 {"removeformat":[false,false,"",false,false,""]}],
657 ["<p><span style=\"background-color: aqua\">foo[bar]baz</span></p>",
658 [["stylewithcss","true"],["removeformat",""]],
659 "<p><span style=\"background-color:rgb(0, 255, 255)\">foo</span>[bar]<span s tyle=\"background-color:rgb(0, 255, 255)\">baz</span></p>",
660 [true,true],
661 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
662 ["<p><span style=\"background-color: aqua\">foo[bar]baz</span></p>",
663 [["stylewithcss","false"],["removeformat",""]],
664 "<p><span style=\"background-color:rgb(0, 255, 255)\">foo</span>[bar]<span s tyle=\"background-color:rgb(0, 255, 255)\">baz</span></p>",
665 [true,true],
666 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
667 ["<p style=\"font-weight: bold\">foo[bar]baz</p>",
668 [["stylewithcss","true"],["removeformat",""]],
669 "<p><span style=\"font-weight:bold\">foo</span>[bar]<span style=\"font-weigh t:bold\">baz</span></p>",
670 [true,true],
671 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
672 ["<p style=\"font-weight: bold\">foo[bar]baz</p>",
673 [["stylewithcss","false"],["removeformat",""]],
674 "<p><b>foo</b>[bar]<b>baz</b></p>",
675 [true,true],
676 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
677 ["<b><p style=\"font-weight: bold\">foo[bar]baz</p></b>",
678 [["stylewithcss","true"],["removeformat",""]],
679 "<p><span style=\"font-weight:bold\">foo</span>[bar]<span style=\"font-weigh t:bold\">baz</span></p>",
680 [true,true],
681 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
682 ["<b><p style=\"font-weight: bold\">foo[bar]baz</p></b>",
683 [["stylewithcss","false"],["removeformat",""]],
684 "<p><b>foo</b>[bar]<b>baz</b></p>",
685 [true,true],
686 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}],
687 ["<p style=\"font-variant: small-caps\">foo[bar]baz</p>",
688 [["removeformat",""]],
689 "<p style=\"font-variant:small-caps\">foo[bar]baz</p>",
690 [true],
691 {"removeformat":[false,false,"",false,false,""]}],
692 ["{<p style=\"font-variant: small-caps\">foobarbaz</p>}",
693 [["removeformat",""]],
694 "{<p style=\"font-variant:small-caps\">foobarbaz</p>}",
695 [true],
696 {"removeformat":[false,false,"",false,false,""]}],
697 ["<p style=\"text-indent: 2em\">foo[bar]baz</p>",
698 [["removeformat",""]],
699 "<p style=\"text-indent:2em\">foo[bar]baz</p>",
700 [true],
701 {"removeformat":[false,false,"",false,false,""]}],
702 ["{<p style=\"text-indent: 2em\">foobarbaz</p>}",
703 [["removeformat",""]],
704 "{<p style=\"text-indent:2em\">foobarbaz</p>}",
705 [true],
706 {"removeformat":[false,false,"",false,false,""]}],
707 ["<table data-start=0 data-end=1><tr><td><b>foo</b></table>",
708 [["stylewithcss","true"],["removeformat",""]],
709 "<table>{<tbody><tr><td>foo</td></tr></tbody>}</table>",
710 [true,true],
711 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false," ",false,false,""]}],
712 ["<table data-start=0 data-end=1><tr><td><b>foo</b></table>",
713 [["stylewithcss","false"],["removeformat",""]],
714 "<table>{<tbody><tr><td>foo</td></tr></tbody>}</table>",
715 [true,true],
716 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false," ",false,false,""]}]
717 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698