Commit 4a620c3d authored by Yoshifumi Inoue's avatar Yoshifumi Inoue Committed by Commit Bot

Utilize selection_test() in editing/deleting/delete-line-010.html

This patch changes "delete-line-010.html" to utilize |selection_test()| for ease
of maintenance and help to implementing EditingNG.

Bug: 707656, 679977
Change-Id: Ia0cfd97891a446371363f8cc574005b27d7cf1ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2206527
Auto-Submit: Yoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#770090}
parent 94a9f751
<html>
<head>
<style>
.editing {
font-size: 24px;
width: 600px;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
function editingTest() {
extendSelectionForwardByLineCommand();
extendSelectionForwardByLineCommand();
extendSelectionBackwardByCharacterCommand();
deleteCommand();
}
selection_test(
[
'<div contenteditable>',
'<div>^abc</div>',
'<div>def|<br>ghi</div>',
'</div>',
],
'Delete',
[
'<div contenteditable>',
'<div>|<br></div>',
'<div>ghi</div>',
'</div>',
]);
</script>
<title>Editing Test</title>
</head>
<body contenteditable id="root">
<div id="test" class="editing">There is a tide</div>
<div class="editing">in the affairs of men<br>Which taken at the flood</div>
<script>
runEditingTest();
</script>
</body>
</html>
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 600x28
LayoutBR {BR} at (0,0) size 0x27
LayoutBlockFlow {DIV} at (0,28) size 600x28
LayoutText {#text} at (0,0) size 241x27
text run at (0,0) width 241: "Which taken at the flood"
caret: position 0 of child 0 {BR} of child 1 {DIV} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 600x28
LayoutBR {BR} at (0,0) size 0x28
LayoutBlockFlow {DIV} at (0,28) size 600x28
LayoutText {#text} at (0,0) size 236x28
text run at (0,0) width 236: "Which taken at the flood"
caret: position 0 of child 0 {BR} of child 1 {DIV} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 600x28
LayoutBR {BR} at (0,0) size 0x27
LayoutBlockFlow {DIV} at (0,28) size 600x28
LayoutText {#text} at (0,0) size 239x27
text run at (0,0) width 239: "Which taken at the flood"
caret: position 0 of child 0 {BR} of child 1 {DIV} of body
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