| Index: third_party/WebKit/LayoutTests/fast/forms/resources/common-spinbutton-click-in-iframe.js
|
| diff --git a/third_party/WebKit/LayoutTests/fast/forms/resources/common-spinbutton-click-in-iframe.js b/third_party/WebKit/LayoutTests/fast/forms/resources/common-spinbutton-click-in-iframe.js
|
| index 2043a82920a45a77d40e1952d84385d8b6636101..03e8be11f5a33b242801a56289abec080c86c7cc 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/forms/resources/common-spinbutton-click-in-iframe.js
|
| +++ b/third_party/WebKit/LayoutTests/fast/forms/resources/common-spinbutton-click-in-iframe.js
|
| @@ -31,9 +31,10 @@ function runIFrameLoaded(config)
|
| testInput.focus();
|
| var spinButton = getSpinButton(testInput);
|
| if (spinButton) {
|
| + var rect = spinButton.getBoundingClientRect();
|
| mouseMoveTo(
|
| - iframe.offsetLeft + spinButton.offsetLeft + spinButton.offsetWidth / 2,
|
| - iframe.offsetTop + spinButton.offsetTop + spinButton.offsetHeight / 4);
|
| + iframe.offsetLeft + rect.left + rect.width / 2,
|
| + iframe.offsetTop + rect.top + rect.height / 4);
|
| }
|
| mouseClick();
|
| shouldBeEqualToString('testInput.value', config['expectedValue']);
|
|
|