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

Unified Diff: LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html

Issue 335773002: Don't move uneditable paragraph contents in CompositeEditCommand::moveParagraphContentsToNewBlockIfN (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html
diff --git a/LayoutTests/editing/execCommand/indent-table-cell-crash.html b/LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html
similarity index 52%
copy from LayoutTests/editing/execCommand/indent-table-cell-crash.html
copy to LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html
index 573bf049d27f0bfa2dea1d331e89f663654f8bc1..0c65c05f39342046d2a9e9a9f6617e314d828c96 100644
--- a/LayoutTests/editing/execCommand/indent-table-cell-crash.html
+++ b/LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html
@@ -1,21 +1,19 @@
<!DOCTYPE html>
+<html>
<head>
-<style>
-hr { display: table-cell; }
-</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
onload = function() {
- document.designMode = 'on';
- document.execCommand('SelectAll');
- document.execCommand('Indent');
+ document.execCommand("selectAll");
+ document.execCommand("justifyCenter");
document.body.textContent = 'PASS if Blink doesn\'t crash.';
};
</script>
</head>
-<body>
-before<hr><hr>after
+<body contenteditable="true">
+<kbd>foo</kbd>
+<sup>bar<abbr contenteditable="false">baz</abbr></sup>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698