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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/style/apply_style_to_plaintext_only.html

Issue 2179033004: Convert editing/style/5017613-*.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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>^foo</div>',
10 '<table contenteditable="false">',
11 '<tr>',
12 '<td>non-editable</td>',
13 '<td contenteditable="plaintext-only">plaintext-only</td>',
14 '</tr>',
15 '</table>|',
16 '</div>'
17 ].join(''),
18 'bold',
19 [
20 '<div contenteditable>',
21 '<div><b>^foo</b></div>',
22 '<table contenteditable="false">',
23 '<tbody><tr>',
24 '<td>non-editable</td>',
25 '<td contenteditable="plaintext-only" style="font-weight: bo ld;">plaintext-only</td>',
26 '</tr></tbody>',
27 '</table>|',
28 '</div>'
29 ].join('')),
30 'Plaintext-only regions can be styled as long as they are fully selected.');
31
32 test(() => assert_selection(
33 [
34 '<div contenteditable>',
35 '<div>^foo</div>',
36 '<table contenteditable="false">',
37 '<tr>',
38 '<td>non-editable</td>',
39 '<td contenteditable="plaintext-only">',
40 '<span>plaintext|</span>-only',
41 '</td>',
42 '</tr>',
43 '</table>',
44 '</div>'
45 ].join(''),
46 'bold',
47 [
48 '<div contenteditable>',
49 '<div><b>^foo</b></div>',
50 '<table contenteditable="false">',
51 '<tbody><tr>',
52 '<td>non-editable</td>',
53 '<td contenteditable="plaintext-only">',
54 '<span>plaintext|</span>-only',
55 '</td>',
56 '</tr></tbody>',
57 '</table>',
58 '</div>'
59 ].join('')),
60 'Plaintext-only regions are not styled if they are not fully selected.');
61 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698