| Index: third_party/WebKit/LayoutTests/editing/selection/vertical-rl-ltr-extend-line-backward-p.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/selection/vertical-rl-ltr-extend-line-backward-p.html b/third_party/WebKit/LayoutTests/editing/selection/vertical-rl-ltr-extend-line-backward-p.html
|
| index ea7d4737ab54c7013f50c49ea6e58571969b15bf..f430884f459516c4b2f1f4f19e3499428abc3704 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/selection/vertical-rl-ltr-extend-line-backward-p.html
|
| +++ b/third_party/WebKit/LayoutTests/editing/selection/vertical-rl-ltr-extend-line-backward-p.html
|
| @@ -1,22 +1,25 @@
|
| <!DOCTYPE html>
|
| -<html>
|
| -<head>
|
| -<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
| -<style> .selected { color: blue; } </style>
|
| -</head>
|
| -<body>
|
| +<meta charset="utf-8">
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| <p>This tests horizontal caret movement in vertical writing mode. "ある。" and "名前はまだ" must be selected.</p>
|
| -<div id="test" style="height: 30ex; -webkit-writing-mode: vertical-rl; outline: none;" contenteditable>
|
| -<p>吾輩は猫である。</p>
|
| -<p>名前はまだ無い。</p>
|
| +<div style="height: 30ex; -webkit-writing-mode: vertical-rl; outline: none;" contenteditable>
|
| +<p id="p1">吾輩は猫である。</p>
|
| +<p id="p2">名前はまだ無い。</p>
|
| </div>
|
| -<pre id="log"></pre>
|
| +<div id="log"></div>
|
| <script>
|
| +test(function() {
|
| + var selection = window.getSelection();
|
| + var p1 = document.getElementById('p1');
|
| + var p2 = document.getElementById('p2');
|
| + selection.collapse(p2.firstChild, 5);
|
| + selection.modify('Extend', 'Backward', 'Line');
|
|
|
| -var test = document.getElementById('test');
|
| -window.getSelection().collapse(test.getElementsByTagName('p')[1].lastChild, 5);
|
| -window.getSelection().modify('Extend', 'Backward', 'Line');
|
| -
|
| + assert_false(selection.isCollapsed, 'isCollapsed');
|
| + assert_equals(selection.anchorNode, p2.firstChild, 'anchorNode');
|
| + assert_equals(selection.anchorOffset, 5, 'anchorOffset');
|
| + assert_equals(selection.focusNode, p1.firstChild, 'focusNode');
|
| + assert_equals(selection.focusOffset, 5, 'focusOffset');
|
| +});
|
| </script>
|
| -</body>
|
| -</html>
|
|
|