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

Unified Diff: LayoutTests/editing/style/apply-style-crash2.html

Issue 177093016: Fix crash in ApplyStyleCommand::applyRelativeFontStyleChange() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reduce layout test Created 6 years, 10 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 | LayoutTests/editing/style/apply-style-crash2-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/style/apply-style-crash2.html
diff --git a/LayoutTests/editing/style/apply-style-crash2.html b/LayoutTests/editing/style/apply-style-crash2.html
new file mode 100644
index 0000000000000000000000000000000000000000..7483cb97864471f053735ef31dd54c606e0470ea
--- /dev/null
+++ b/LayoutTests/editing/style/apply-style-crash2.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<body>
+This test passes if it does not crash.
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+el1 = document.createElement('li');
+document.body.appendChild(el1);
+el2 = document.createElement('thead');
+el1.appendChild(el2);
+el2.parentNode.insertBefore(document.createElement('video'), el2);
+el2.parentNode.insertBefore(document.createElement('input'), el2);
+document.designMode = 'on';
+window.getSelection().setBaseAndExtent(el1, 2, el2, 4);
+document.designMode = 'off';
+window.getSelection().modify('extend', 'backward', 'character');
+el1.innerHTML = "PASS";
+document.designMode = 'on';
+document.execCommand('FontSizeDelta', false, '-1px');
+document.designMode = 'off';
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/editing/style/apply-style-crash2-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698