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

Unified Diff: LayoutTests/editing/execCommand/outdent-collapse-table-crash-2.html

Issue 305143002: Don't call moveParagraph() with null |VisiblePositon| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2014-05-30T05:23:36 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
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/outdent-collapse-table-crash-2-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/execCommand/outdent-collapse-table-crash-2.html
diff --git a/LayoutTests/editing/execCommand/outdent-collapse-table-crash-2.html b/LayoutTests/editing/execCommand/outdent-collapse-table-crash-2.html
new file mode 100644
index 0000000000000000000000000000000000000000..c9161374c9e3ccd79a144b42976ee65177877ed2
--- /dev/null
+++ b/LayoutTests/editing/execCommand/outdent-collapse-table-crash-2.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+* {
+ visibility: visible;
+}
+
+*:only-of-type {
+ visibility: collapse;
+}
+</style>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+onload = function() {
+ document.designMode = 'on';
+ var blockQuote = document.querySelector('blockquote');
+ getSelection().collapse(blockQuote, 2);
+ document.execCommand('Outdent');
+ document.documentElement.textContent = 'PASS if Blink doesn\'t crash.';
+};
+</script>
+</head>
+<body>
+<blockquote>
+<table><tr><td>foo</td></tr></table>
+<table><tr><td>bar</td></tr></table>
+</blockquote>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/outdent-collapse-table-crash-2-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698