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

Unified Diff: third_party/WebKit/LayoutTests/editing/execCommand/remove-format-variable-crash.html

Issue 2103043004: Fix EditingStyle::mergeStyle()'s handling of custom properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test tweak Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/execCommand/remove-format-variable-crash.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/remove-format-variable-crash.html b/third_party/WebKit/LayoutTests/editing/execCommand/remove-format-variable-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..156d61e64e650cb84043b9a492289edb69a38a5a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/remove-format-variable-crash.html
@@ -0,0 +1,20 @@
+<!doctype html>
yosin_UTC9 2016/07/01 09:28:49 How about writing gTest for this case, e.g. Editin
Timothy Loh 2016/07/07 02:54:32 The test right now is just a copy of the clusterfu
yosin_UTC9 2016/07/07 05:47:22 We would like to check result of the regressed fun
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+document.documentElement.contentEditable="true";
+document.documentElement.appendChild(document.createElement('table'));
+eAcronym = document.createElement('acronym');
+document.documentElement.appendChild(eAcronym);
+document.documentElement.appendChild(document.createElement('keygen'));
+newElem = document.createElement('figure');
+newElem.style.cssText = '--AAAA: var(--BBBB)';
+document.documentElement.appendChild(newElem);
+eCite = document.createElement('cite');
+eCite.style.cssText = 'float: var(--CCCC)';
+eAcronym.appendChild(eCite);
+eCite.appendChild(document.createElement('marquee'));
+document.execCommand('SelectAll');
+document.execCommand('RemoveFormat');
+test(() => {}, "This test passes if it doesn't crash.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698