Commit 55db96a8 authored by Yoshifumi Inoue's avatar Yoshifumi Inoue Committed by Commit Bot

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

This patch changes "editing/deleting/delete-line-004.html" to utilize
|selection_test()| to avoid using unnecessary reference images for ease of
maintenance and enabling new features, e.g. EditingNG, high-DPI font, etc.

Bug: 679977
Change-Id: I114a279e440bf18df6ba7f13808c34089528fad9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2306496
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@{#789833}
parent f0f74437
<html> <!doctype html>
<head> <script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<style> <script src="../assert_selection.js"></script>
.editing {
font-size: 24px;
width: 600px;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script> <script>
selection_test(
function editingTest() { [
moveSelectionForwardByLineCommand(); '<div contenteditable>',
extendSelectionForwardByLineCommand(); '<div>There is a tide</div>',
deleteCommand(); '<div>^in the affairs of men</div>',
} '<div>|Which taken at the flood</div>',
'</div>',
],
'Delete',
[
'<div contenteditable>',
'<div>There is a tide</div>',
'<div>|Which taken at the flood</div>',
'</div>',
]);
</script> </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</div>
<div class="editing">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: 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
LayoutText {#text} at (0,0) size 139x27
text run at (0,0) width 139: "There is a tide"
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 {#text} of child 3 {DIV} of body
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
LayoutText {#text} at (0,0) size 137x28
text run at (0,0) width 137: "There is a tide"
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 {#text} of child 3 {DIV} of body
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
LayoutText {#text} at (0,0) size 136x27
text run at (0,0) width 136: "There is a tide"
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 {#text} of child 3 {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