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

Unified Diff: LayoutTests/editing/execCommand/indent-table-cell-crash.html

Issue 306473003: Don't over split DOM tree in CompositeEditCommand::splitTreeToNode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2014-05-27T01:56:21 Created 6 years, 7 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: LayoutTests/editing/execCommand/indent-table-cell-crash.html
diff --git a/LayoutTests/editing/execCommand/indent-table-cell-crash.html b/LayoutTests/editing/execCommand/indent-table-cell-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..8880b6a079c6ea43744c152f943f614602146c60
--- /dev/null
+++ b/LayoutTests/editing/execCommand/indent-table-cell-crash.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<head>
+<style>
+hr { display: table-cell; }
+</style>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+onload = function() {
+ document.designMode = 'on';
Yuta Kitamura 2014/05/27 07:41:27 nit: Please use 4-space indent.
yosin_UTC9 2014/05/27 09:30:06 Done.
+ document.execCommand('SelectAll');
+ document.execCommand('Indent');
+ document.body.textContent = 'PASS if Blink doesn\'t crash.';
+};
+</script>
+</head>
+<body>
+before<hr><hr>after
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698