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

Unified Diff: third_party/WebKit/LayoutTests/editing/execCommand/script-tests/empty-span-removal.js

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/execCommand/script-tests/empty-span-removal.js
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/script-tests/empty-span-removal.js b/third_party/WebKit/LayoutTests/editing/execCommand/script-tests/empty-span-removal.js
index 2e5e604522457624eea782cf3dbd785f4d102659..41e0bf31e8f49c0921d31a36e8b4d87d08cfb4cb 100644
--- a/third_party/WebKit/LayoutTests/editing/execCommand/script-tests/empty-span-removal.js
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/script-tests/empty-span-removal.js
@@ -32,7 +32,7 @@ function testDoubleToggle(toggleCommand, initialContents, expectedContents)
testSingleToggle("bold", "<span><span style='font-weight: bold'>test</span></span>", "<span>test</span>");
testSingleToggle("bold", "<span style='font-weight: bold'><span>test</span></span>", "test");
testSingleToggle("bold", "<span style='font-weight: bold'><span style='font-weight: bold'>test</span></span>", "test");
-testSingleToggle("bold", "<span foo=\"bar\" style='font-weight: bold'>test</span>", "<span foo=\"bar\">test</span>");
+testSingleToggle("bold", "<span foo=\"bar\" style='font-weight: bold'>test</span>", "<span foo=\"bar\" style=\"\">test</span>");
testDoubleToggle("bold", "<span>test</span>", "<span>test</span>");
document.body.removeChild(testContainer);

Powered by Google App Engine
This is Rietveld 408576698