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> |