Commit 319a121e authored by Yoshifumi Inoue's avatar Yoshifumi Inoue Committed by Commit Bot

Utilize selection_test() in editing/inserting/insert-text-at-tabspan-003.html

This patch changes "insert-text-at-tabspan-003.html" to utilize |selection_test|
for ease of maintenance and enabling EditingNG.

Bug: 679977, 707656
Change-Id: I2cdf61e03341f0cb9417992f86c049115538548d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2259875
Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Auto-Submit: Yoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781267}
parent cd7526f9
<html> <!doctype html>
<head> <script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<style> <script src="../assert_selection.js"></script>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script> <script>
selection_test(
function editingTest() { [
for (i = 0; i < 4; i++) '<div contenteditable>',
moveSelectionForwardByCharacterCommand(); 'a<span style="white-space:pre">\t\t\t|</span>z',
typeCharacterCommand(); '</div>',
} ],
'insertText X',
[
'<div contenteditable>',
'a<span style="white-space:pre">\t\t\t</span>X|z',
'</div>',
],
'Insert text at tab span');
</script> </script>
<title>Editing Test</title>
</head>
<body style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">
<div contenteditable id="root" class="editing">
<span id="test">a<span style="white-space:pre"> </span>z</span>
</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: 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 784x56 [border: (2px solid #FF0000)]
LayoutInline {SPAN} at (14,14) size 167x27
LayoutText {#text} at (14,14) size 11x27
text run at (14,14) width 11: "a"
LayoutInline {SPAN} at (25,14) size 133x27
LayoutText {#text} at (25,14) size 133x27
text run at (25,14) width 133: "\x{9}\x{9}\x{9}"
LayoutText {#text} at (158,14) size 12x27
text run at (158,14) width 12: "x"
LayoutText {#text} at (170,14) size 11x27
text run at (170,14) width 11: "z"
LayoutText {#text} at (0,0) size 0x0
caret: position 1 of child 2 {#text} of child 1 {SPAN} 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: 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 784x56 [border: (2px solid #FF0000)]
LayoutInline {SPAN} at (14,14) size 167x28
LayoutText {#text} at (14,14) size 11x28
text run at (14,14) width 11: "a"
LayoutInline {SPAN} at (24,14) size 134x28
LayoutText {#text} at (24,14) size 134x28
text run at (24,14) width 134: "\x{9}\x{9}\x{9}"
LayoutText {#text} at (157,14) size 13x28
text run at (157,14) width 13: "x"
LayoutText {#text} at (169,14) size 12x28
text run at (169,14) width 12: "z"
LayoutText {#text} at (0,0) size 0x0
caret: position 1 of child 2 {#text} of child 1 {SPAN} 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: 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 784x56 [border: (2px solid #FF0000)]
LayoutInline {SPAN} at (14,14) size 166x27
LayoutText {#text} at (14,14) size 11x27
text run at (14,14) width 11: "a"
LayoutInline {SPAN} at (25,14) size 133x27
LayoutText {#text} at (25,14) size 133x27
text run at (25,14) width 133: "\x{9}\x{9}\x{9}"
LayoutText {#text} at (158,14) size 12x27
text run at (158,14) width 12: "x"
LayoutText {#text} at (170,14) size 10x27
text run at (170,14) width 10: "z"
LayoutText {#text} at (0,0) size 0x0
caret: position 1 of child 2 {#text} of child 1 {SPAN} 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