Chromium Code Reviews| Index: LayoutTests/svg/text/resources/SelectionTestCase.js |
| diff --git a/LayoutTests/svg/text/resources/SelectionTestCase.js b/LayoutTests/svg/text/resources/SelectionTestCase.js |
| index fe43dcf63bb3174b7a11ccb55a4341d929e13163..926bc658ff69108d865843c6323e112a4df7a844 100644 |
| --- a/LayoutTests/svg/text/resources/SelectionTestCase.js |
| +++ b/LayoutTests/svg/text/resources/SelectionTestCase.js |
| @@ -69,6 +69,11 @@ function selectRange(id, start, end, expectedText) { |
| var absStartPos = toAbsoluteCoordinates(startPos, element); |
| var absEndPos = toAbsoluteCoordinates(endPos, element); |
| + // Round the points "inwards" to avoid being affected by the truncation |
| + // taking place in eventSender.mouseMoveTo(...). |
| + absStartPos.x = Math.ceil(absStartPos.x); |
|
hyunjunekim2
2015/04/28 02:22:07
Could you change like this?
absStartPos.x = Math.c
pdr.
2015/04/28 03:08:39
Why?
|
| + absEndPos.x = Math.floor(absEndPos.x); |
| + |
| // Move to selection origin and hold down mouse |
| eventSender.mouseMoveTo(absStartPos.x, absStartPos.y); |
| eventSender.mouseDown(); |