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

Unified Diff: LayoutTests/editing/undo/crash-delete-from-document.html

Issue 315493004: reset VisibleSelection at the Undo command. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/undo/crash-delete-from-document.html
diff --git a/LayoutTests/editing/execCommand/indent-table-cell-crash.html b/LayoutTests/editing/undo/crash-delete-from-document.html
similarity index 51%
copy from LayoutTests/editing/execCommand/indent-table-cell-crash.html
copy to LayoutTests/editing/undo/crash-delete-from-document.html
index 573bf049d27f0bfa2dea1d331e89f663654f8bc1..7674b83b138603380e2cba9b1991d271838f0cb2 100644
--- a/LayoutTests/editing/execCommand/indent-table-cell-crash.html
+++ b/LayoutTests/editing/undo/crash-delete-from-document.html
@@ -1,21 +1,24 @@
<!DOCTYPE html>
<head>
-<style>
-hr { display: table-cell; }
-</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
-onload = function() {
+window.onload = function () {
document.designMode = 'on';
+
+ document.body.textContent = 'aaaa';
document.execCommand('SelectAll');
- document.execCommand('Indent');
+ document.execCommand('Italic');
+ window.getSelection().deleteFromDocument();
+
+ document.execCommand('Undo');
+ window.getSelection().deleteFromDocument();
+
document.body.textContent = 'PASS if Blink doesn\'t crash.';
};
</script>
</head>
<body>
-before<hr><hr>after
</body>
-</html>
+</html>
« no previous file with comments | « no previous file | LayoutTests/editing/undo/crash-delete-from-document-expected.txt » ('j') | Source/core/dom/Range.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698