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

Unified Diff: LayoutTests/editing/execCommand/format-block-with-uneditable-crash.html

Issue 309993002: Make isEditablePosition to work with Position objects other than PositionIsOffsetInAnchor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2014-06-03T06:20:40 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/format-block-with-uneditable-crash.html
diff --git a/LayoutTests/editing/execCommand/insert-tab-to-html-element-crash.html b/LayoutTests/editing/execCommand/format-block-with-uneditable-crash.html
similarity index 61%
copy from LayoutTests/editing/execCommand/insert-tab-to-html-element-crash.html
copy to LayoutTests/editing/execCommand/format-block-with-uneditable-crash.html
index 78d0b16afcd0b2f18a9d0e3015acfee5d9f2f1f8..3c1a1e403b54b34c35a6589d3e1d253eff4bb58a 100644
--- a/LayoutTests/editing/execCommand/insert-tab-to-html-element-crash.html
+++ b/LayoutTests/editing/execCommand/format-block-with-uneditable-crash.html
@@ -1,18 +1,19 @@
<!DOCTYPE html>
+<html>
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
onload = function() {
- getSelection().collapse(document.body, 0);
- document.body.parentNode.removeChild(document.body);
document.designMode = 'on';
- document.execCommand("InsertText", false, '\t');
+ document.execCommand('SelectAll');
+ document.execCommand('FormatBlock', false, '<pre>');
document.documentElement.textContent = 'PASS if Blink doesn\'t crash.';
-}
+};
</script>
</head>
<body>
+ab<embed contenteditable="false"></embed>xyz
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698