Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/resources/common-spinbutton-click-in-iframe.js

Issue 2733593002: Text control elements should contain all (shadow DOM) children. (Closed)
Patch Set: Improve documentation. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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']);

Powered by Google App Engine
This is Rietveld 408576698