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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/mouse/click-left-of-rtl-wrapping-text.html

Issue 2800723002: Ensure we never remove the style attribute when syncing it from CSSOM. (Closed)
Patch Set: Nits Created 3 years, 8 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/selection/mouse/click-left-of-rtl-wrapping-text.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/mouse/click-left-of-rtl-wrapping-text.html b/third_party/WebKit/LayoutTests/editing/selection/mouse/click-left-of-rtl-wrapping-text.html
index 6fc5e24eafa19788068fff71ff819266cf436eb3..dc2b96f4d77c1654ed8db393d76c275065930e69 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/mouse/click-left-of-rtl-wrapping-text.html
+++ b/third_party/WebKit/LayoutTests/editing/selection/mouse/click-left-of-rtl-wrapping-text.html
@@ -39,12 +39,12 @@ test(() => {
assert_selection(
'<div contenteditable dir="rtl">&#1498; &#1500;&#1499;</div>',
selection => testClickLeft(selection, 2, 0),
- '<div contenteditable dir="rtl">ך |לכ</div>');
+ '<div contenteditable dir="rtl" style>ך |לכ</div>');
assert_selection(
'<div contenteditable dir="rtl">&#1498; &#1500;&#1499;</div>',
selection => testClickLeft(selection, 2, 1),
- '<div contenteditable dir="rtl">ך לכ|</div>');
+ '<div contenteditable dir="rtl" style>ך לכ|</div>');
assert_selection(
[
@@ -54,7 +54,7 @@ test(() => {
].join(''),
selection => testClickLeft(selection, 3, 0),
[
- '<div contenteditable dir="rtl">',
+ '<div contenteditable dir="rtl" style>',
'ככ |ככככ כככ',
'</div>'
].join(''));
@@ -67,7 +67,7 @@ test(() => {
].join(''),
selection => testClickLeft(selection, 3, 1),
[
- '<div contenteditable dir="rtl">',
+ '<div contenteditable dir="rtl" style>',
'ככ ככככ |כככ',
'</div>'
].join(''));
@@ -80,7 +80,7 @@ test(() => {
].join(''),
selection => testClickLeft(selection, 3, 2),
[
- '<div contenteditable dir="rtl">',
+ '<div contenteditable dir="rtl" style>',
'ככ ככככ כככ|',
'</div>'
].join(''));
@@ -93,7 +93,7 @@ test(() => {
].join(''),
selection => testClickLeft(selection, 5, 0),
[
- '<div contenteditable dir="rtl">',
+ '<div contenteditable dir="rtl" style>',
'גכ |יגכ יגכ יגכ יגכ',
'</div>'
].join(''));
@@ -106,7 +106,7 @@ test(() => {
].join(''),
selection => testClickLeft(selection, 5, 1),
[
- '<div contenteditable dir="rtl">',
+ '<div contenteditable dir="rtl" style>',
'גכ יגכ |יגכ יגכ יגכ',
'</div>'
].join(''));
@@ -119,7 +119,7 @@ test(() => {
].join(''),
selection => testClickLeft(selection, 5, 2),
[
- '<div contenteditable dir="rtl">',
+ '<div contenteditable dir="rtl" style>',
'גכ יגכ יגכ |יגכ יגכ',
'</div>'
].join(''));
@@ -132,7 +132,7 @@ test(() => {
].join(''),
selection => testClickLeft(selection, 5, 3),
[
- '<div contenteditable dir="rtl">',
+ '<div contenteditable dir="rtl" style>',
'גכ יגכ יגכ יגכ |יגכ',
'</div>'
].join(''));
@@ -145,10 +145,10 @@ test(() => {
].join(''),
selection => testClickLeft(selection, 5, 4),
[
- '<div contenteditable dir="rtl">',
+ '<div contenteditable dir="rtl" style>',
'גכ יגכ יגכ יגכ יגכ|',
'</div>'
].join(''));
}, 'This tests clicking on the left of RTL text puts the caret at the end of the line');
-</script>
+</script>

Powered by Google App Engine
This is Rietveld 408576698