Index: third_party/WebKit/LayoutTests/editing/execCommand/apply_style/justify_right_ul_br_crash.html |
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/apply_style/justify_right_ul_br_crash.html b/third_party/WebKit/LayoutTests/editing/execCommand/apply_style/justify_right_ul_br_crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..88c4464bb8212e6bc20b6ca0eacc22208150704f |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/apply_style/justify_right_ul_br_crash.html |
@@ -0,0 +1,12 @@ |
+<!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>^foo<ul><br></ul>|</div>', |
+ 'JustifyRight', |
+ '<div contenteditable><div style="text-align: right;">^foo</div><ul style="text-align: right;">|<br></ul></div>'); |
+}, 'JustifyRight command should not crash with UL containing BR only.'); |
+</script> |