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

Unified Diff: third_party/WebKit/LayoutTests/editing/style/typing_style.html

Issue 2250653003: Convert editing/style/style-3681552-fix-001.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-08-17T14:10:09 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
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..d41cc906be6a44db08a893a950de9c68e0019d8e 100644
--- a/third_party/WebKit/LayoutTests/editing/style/typing_style.html
+++ b/third_party/WebKit/LayoutTests/editing/style/typing_style.html
@@ -44,4 +44,10 @@
},
'<div contenteditable>abc<b>def</b><i><b>ghi</b>jkl</i>mno|</div>'),
'Nested styles and disabling styles');
+
+ test(() => assert_selection(
+ '<div contenteditable>here is <i>^some|</i> text</div>',
+ 'insertText abcd',
+ '<div contenteditable>here is <i>abcd|</i> text</div>'),
+ 'Replace selection keeps style');
</script>

Powered by Google App Engine
This is Rietveld 408576698