Commit fd236997 authored by Yoshifumi Inoue's avatar Yoshifumi Inoue Committed by Commit Bot

Utilize selection_test() for "editing/deleting/transpose-empty.html"

This patch changes "transpose-empty.html" to utilize |selection_test()| for ease
of maintenance.

Note: "transpose-empty.html" is failed on layout_ng bot due by pixel test.

Bug: 679977, 636993
Change-Id: Ibeb10cf4f7b6d0f270a30467060b9fba2891999d
Reviewed-on: https://chromium-review.googlesource.com/991496Reviewed-by: default avatarYoichi Osato <yoichio@chromium.org>
Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547646}
parent 6f99e968
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
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
caret: position 0 of body
<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;
}
.explanation {
border: 2px solid blue;
padding: 12px;
font-size: 24px;
margin-bottom: 24px;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script> <script>
selection_test(
function editingTest() { '<div contenteditable>|</div>',
transposeCharactersCommand(); 'transpose',
} '<div contenteditable>|</div>',
'Transpose empty editable should not crash');
</script> </script>
<title>Editing Test</title>
</head>
<body contenteditable id="test"></body><script>runEditingTest();</script>
</html>
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