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

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

Issue 2653063004: Make Editor::revealSelectionAfterEditingOperation check document availability (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Regression test for crbug.com/685347
7 test(() => {
8 assert_not_equals(
9 window.eventSender, undefined, 'This test requires eventSender');
10
11 assert_selection(
12 '<iframe></iframe>',
13 selection => {
14 const document = selection.document;
15 const iframe = document.querySelector('iframe');
16 iframe.contentDocument.documentElement.contentEditable = true;
17 iframe.contentDocument.documentElement.addEventListener(
18 'focusout',
19 () => iframe.parentNode.removeChild(iframe));
20 iframe.contentDocument.documentElement.focus();
21 eventSender.keyDown('Enter');
22 },
23 '');
24 }, 'Should not crash when inserting linebreak removes frame.');
25 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698