Commit 1b87679b authored by Yoshifumi Inoue's avatar Yoshifumi Inoue Committed by Commit Bot

Utilize selection_test() in editing/editing/style/5279521.html

This patch changes "5065910.html" to utilize |selection_test()| and renames to
"justify_block_starts_with_image.html" for ease of maintenance and help to
implementing EditingNG.

Bug: 707656, 679977
Change-Id: Ic22aa13b2da5c6dbcc0657d742c79bd4ffe37a27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2213646
Auto-Submit: Yoshifumi Inoue <yosin@chromium.org>
Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#771493}
parent 0709f3d4
<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// This tests for a crash when changing the alignment of content that starts
// with an image not inside its own block container.
selection_test(
'<div contenteditable>^<img><div>abc</div>|</div>',
'JustifyRight',
[
'<div contenteditable>',
'<div style="text-align: right;">^<img></div>',
'<div style="text-align: right;">abc|</div>',
'</div>',
]);
</script>
<div id="div" contenteditable="true"><img src="../resources/abe.png">
<div>This tests for a crash when changing the alignment of content that starts with an image not inside its own block container.</div></div>
<script>
var div = document.getElementById("div");
div.focus();
document.execCommand("SelectAll");
document.execCommand("JustifyRight");
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment