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/indent-no-visible-contents-crash.html

Issue 349143002: Don't try to move non visible contents in "Indent" command (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2014-06-23T03:50:27 Created 6 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 | LayoutTests/editing/execCommand/indent-no-visible-contents-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/execCommand/indent-no-visible-contents-crash.html
diff --git a/LayoutTests/editing/execCommand/indent-no-visible-contents-crash.html b/LayoutTests/editing/execCommand/indent-no-visible-contents-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..042dfe48ec4d40c3337ec2dacbcf0994e5507919
--- /dev/null
+++ b/LayoutTests/editing/execCommand/indent-no-visible-contents-crash.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<body>
+<div contenteditable="true" id="target"><span></span></div>
+</body>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+getSelection().collapse(document.getElementById('target'), 0);
+document.execCommand('Indent');
+document.body.textContent = 'PASS if Blink doesn\'t crash.';
+</script>
+</html>
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/indent-no-visible-contents-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698