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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/insert-list-over-uneditable-in-contenteditable.html

Issue 2250133004: No hang when inserting a list over uneditable element in contenteditable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra blanks in the test case 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/selection/insert-list-over-uneditable-in-contenteditable.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/insert-list-over-uneditable-in-contenteditable.html b/third_party/WebKit/LayoutTests/editing/selection/insert-list-over-uneditable-in-contenteditable.html
new file mode 100644
index 0000000000000000000000000000000000000000..1b9f40ffa7b0591d49f6db81e3269c90d1c082eb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/selection/insert-list-over-uneditable-in-contenteditable.html
@@ -0,0 +1,10 @@
+<!doctype HTML>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
+<script>
+test(() => assert_selection('<div contenteditable><p>^line1<button contenteditable="false">hello</button></p><p>line2|</p></div>',
+ 'insertUnorderedList',
+ '<div contenteditable><p><ul><li>^line1</li></ul><button contenteditable="false">hello</button></p><p><ul><li>line|2</li></ul></p></div>'),
+ 'No time out when inserting a list over selected paragraphs that has a non-editable child element');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698