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

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: 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/LayoutTests/editing/execCommand/remove-format-variable-crash-expected.txt » ('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..800a236d2361d804e83ee0e95a481d39cd7c95f0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/remove-format-variable-crash.html
@@ -0,0 +1,19 @@
+<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', 'false', 'true')
+document.execCommand('RemoveFormat', 'true', 'true')
yosin_UTC9 2016/06/29 05:11:41 Could you put write HTML in the file rather than c
Timothy Loh 2016/06/29 05:22:04 I tried doing this sort of thing but it no longer
+window.testRunner && testRunner.dumpAsText();
yosin_UTC9 2016/06/29 05:11:42 Could you use test w3c harness? Using |assert_sele
Timothy Loh 2016/06/29 05:22:04 I'll try, but I might not be able to get it to rep
alancutter (OOO until 2018) 2016/06/29 07:26:10 testharness.js is desirable. You may need to wait
Timothy Loh 2016/06/30 04:16:42 I updated the test with a test(() => {}) call, see
+</script>
+
+This test passes if it doesn't crash.
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/remove-format-variable-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698