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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/format-block-multiple-paragraphs-in-pre.html

Issue 2680943004: Make FrameSelection to hold non-canonicalized positions (Closed)
Patch Set: 2014-02-14T23:34:22 Update TestExpectation to include extend-{0,2,4}0.html and selectAllChildren.html Created 3 years, 10 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
1 <!doctype html> 1 <!doctype html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script> 4 <script src="../assert_selection.js"></script>
5 <script> 5 <script>
6 test(() => assert_selection( 6 test(() => assert_selection(
7 [ 7 [
8 '<div contenteditable>', 8 '<div contenteditable>',
9 '<pre>', 9 '<pre>',
10 '^hello\n\nworld\n\nwebkit\n|', 10 '^hello\n\nworld\n\nwebkit\n|',
11 '</pre>', 11 '</pre>',
12 '</div>', 12 '</div>',
13 ].join(''), 13 ].join(''),
14 'formatBlock h3', 14 'formatBlock h3',
15 [ 15 [
16 '<div contenteditable>', 16 '<div contenteditable>',
17 '<h3>', 17 '<h3>',
18 'hello<br>\nworld<br>\nwebkit', 18 'hello<br>\nworld<br>\nwebkit|',
19 '</h3>|', 19 '</h3>',
20 '</div>', 20 '</div>',
21 ].join('')), 21 ].join('')),
22 'formatBlock on all contents with H3'); 22 'formatBlock on all contents with H3');
23 23
24 test(() => assert_selection( 24 test(() => assert_selection(
25 [ 25 [
26 '<div contenteditable>', 26 '<div contenteditable>',
27 '<pre>', 27 '<pre>',
28 '^hello\n\nworld\n\n|webkit\n', 28 '^hello\n\nworld\n\n|webkit\n',
29 '</pre>', 29 '</pre>',
(...skipping 14 matching lines...) Expand all
44 '<div contenteditable>', 44 '<div contenteditable>',
45 '<pre>', 45 '<pre>',
46 'hello\n^\nworld\n\nwebkit\n|', 46 'hello\n^\nworld\n\nwebkit\n|',
47 '</pre>', 47 '</pre>',
48 '</div>', 48 '</div>',
49 ].join(''), 49 ].join(''),
50 'formatBlock h3', 50 'formatBlock h3',
51 [ 51 [
52 '<div contenteditable>', 52 '<div contenteditable>',
53 '<pre>', 53 '<pre>',
54 'hello\n<h3>\nworld\nwebkit</h3>|', 54 'hello\n<h3>\nworld\nwebkit|</h3>',
55 '</pre>', 55 '</pre>',
56 '</div>', 56 '</div>',
57 ].join('')), 57 ].join('')),
58 'formatBlock all but the first paragraph with H3'); 58 'formatBlock all but the first paragraph with H3');
59 </script> 59 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698