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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_details_crash.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 <div id="log"></div> 5 <div id="log"></div>
6 <script> 6 <script>
7 test(() => { 7 test(() => {
8 assert_selection( 8 assert_selection(
9 [ 9 [
10 '|<legend style="all: initial">foo</legend>', 10 '|<legend style="all: initial">foo</legend>',
11 '<details style="display: inline"></details>', 11 '<details style="display: inline"></details>',
12 '<textarea></textarea>', 12 '<textarea></textarea>',
13 ].join(''), 13 ].join(''),
14 selection => { 14 selection => {
15 selection.document.execCommand('selectAll'); 15 selection.document.execCommand('selectAll');
16 selection.document.designMode = 'on'; 16 selection.document.designMode = 'on';
17 }, 17 },
18 [ 18 [
19 '<legend style="all: initial">^foo</legend>', 19 '<legend style="all: initial">^foo|</legend>',
20 '<details style="display: inline"></details>', 20 '<details style="display: inline"></details>',
21 '<textarea></textarea>|', 21 '<textarea></textarea>',
22 ].join('')); 22 ].join(''));
23 }, 'selectAll on DETAILS should not crash'); 23 }, 'selectAll on DETAILS should not crash');
24 </script> 24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698