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

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-06T06:24:03 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/format-block-with-uneditable-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/execCommand/format-block-with-uneditable-crash.html
diff --git a/LayoutTests/editing/execCommand/apply-style-empty-paragraph-start-crash.html b/LayoutTests/editing/execCommand/format-block-with-uneditable-crash.html
similarity index 62%
copy from LayoutTests/editing/execCommand/apply-style-empty-paragraph-start-crash.html
copy to LayoutTests/editing/execCommand/format-block-with-uneditable-crash.html
index 64a752bf6d062c9f7b7e032225f6e454de89bb2f..3c1a1e403b54b34c35a6589d3e1d253eff4bb58a 100644
--- a/LayoutTests/editing/execCommand/apply-style-empty-paragraph-start-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() {
+ document.designMode = 'on';
document.execCommand('SelectAll');
- document.execCommand('JustifyCenter');
+ document.execCommand('FormatBlock', false, '<pre>');
document.documentElement.textContent = 'PASS if Blink doesn\'t crash.';
-}
+};
</script>
</head>
-<body contenteditable="true">
-<canvas contenteditable="false">text</canvas><b></b>
-<textarea></textarea>
+<body>
+ab<embed contenteditable="false"></embed>xyz
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/format-block-with-uneditable-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698