Index: third_party/WebKit/LayoutTests/editing/style/typing_style.html |
diff --git a/third_party/WebKit/LayoutTests/editing/style/typing_style.html b/third_party/WebKit/LayoutTests/editing/style/typing_style.html |
index e052b9209e67a42e760786d93413040a2d14e8f2..717a5d55c1ab77661020e9772f117b4721f55c99 100644 |
--- a/third_party/WebKit/LayoutTests/editing/style/typing_style.html |
+++ b/third_party/WebKit/LayoutTests/editing/style/typing_style.html |
@@ -12,6 +12,17 @@ |
selection.document.execCommand('insertText', false, 'x'); |
}, |
'<div contenteditable>here isxxxx|\u{00A0}text</div>'), |
+ 'Delete all styled characters and previous character then typing character does not keep style'); |
+ |
+ test(() => assert_selection( |
+ '<div contenteditable>here is <i>some|</i> text</div>', |
+ selection => { |
+ for (var i = 0; i < 4; ++i) |
+ selection.document.execCommand('delete'); |
+ for (var i = 0; i < 4; ++i) |
+ selection.document.execCommand('insertText', false, 'x'); |
+ }, |
+ '<div contenteditable>here is <i>xxxx|</i>\u{00A0}text</div>'), |
'Delete all styled characters then typing character does not keep style'); |
Xiaocheng
2016/08/17 06:04:25
The style is kept.
yosin_UTC9
2016/08/17 06:31:18
Fixed description.
|
test(() => assert_selection( |