| Index: third_party/WebKit/LayoutTests/editing/selection/vertical-rl-ltr-extend-line-forward-wrap.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/selection/vertical-rl-ltr-extend-line-forward-wrap.html b/third_party/WebKit/LayoutTests/editing/selection/vertical-rl-ltr-extend-line-forward-wrap.html
|
| index 77abad469d366c6166b0ce2e13f750d1dd49e01c..dbd12f3d62ed226fdc0c297909d9d902b2d2a34e 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/selection/vertical-rl-ltr-extend-line-forward-wrap.html
|
| +++ b/third_party/WebKit/LayoutTests/editing/selection/vertical-rl-ltr-extend-line-forward-wrap.html
|
| @@ -1,29 +1,32 @@
|
| <!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="-webkit-writing-mode: vertical-rl; outline: none;" contenteditable>
|
| -<p>吾輩は猫である。名前はまだ無い。</p>
|
| +<p id="p1">吾輩は猫である。名前はまだ無い。</p>
|
| </div>
|
|
|
| <span id="span-for-height-calc" style="-webkit-writing-mode: vertical-rl; outline: none;">
|
| <p>吾輩は猫である。<br>名前はまだ無い。</p>
|
| </span>
|
| -<pre id="log"></pre>
|
| +<div id="log"></div>
|
| <script>
|
| +test(function() {
|
| + var desiredHeight = document.getElementById('span-for-height-calc');
|
| + var test = document.getElementById('test');
|
| + test.style.height = (desiredHeight.offsetHeight + 2) + 'px';
|
| + desiredHeight.style.display = 'none';
|
|
|
| -var desiredHeight = document.getElementById('span-for-height-calc');
|
| -var test = document.getElementById('test');
|
| -test.style.height = (desiredHeight.offsetHeight + 2) + 'px';
|
| -desiredHeight.style.display = 'none';
|
| -
|
| -window.getSelection().collapse(test.getElementsByTagName('p')[0].firstChild, 2);
|
| -window.getSelection().modify('Extend', 'Forward', 'Line');
|
| + var selection = window.getSelection();
|
| + var p1 = document.getElementById('p1');
|
| + selection.collapse(p1.firstChild, 2);
|
| + selection.modify('Extend', 'Forward', 'Line');
|
|
|
| + assert_false(selection.isCollapsed, 'isCollapsed');
|
| + assert_equals(selection.anchorNode, p1.firstChild, 'anchorNode');
|
| + assert_equals(selection.anchorOffset, 2, 'anchorOffset');
|
| + assert_equals(selection.focusNode, p1.firstChild, 'focusNode');
|
| + assert_equals(selection.focusOffset, 10, 'focusOffset');
|
| +});
|
| </script>
|
| -</body>
|
| -</html>
|
|
|