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> |