Skip to content
Permalink
Browse files
[Chromium] We should reset mouse position before calling eventSender.…
…mouseMove in LayoutTest

https://bugs.webkit.org/show_bug.cgi?id=79748

Calls eventSender.moveTo(0, 0) before other eventSender.moveTo call to make sure test scripts
get mousemove event.

Patch by Yoshifumi Inoue <yosin@chromium.org> on 2012-02-28
Reviewed by Kent Tamura.

* fast/forms/number/input-number-events.html:
* fast/forms/number/input-number-large-padding.html:
* fast/forms/number/input-spinbutton-capturing.html:

Canonical link: https://commits.webkit.org/96854@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@109093 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
yosinch authored and webkit-commit-queue committed Feb 28, 2012
1 parent bcac020 commit d99f8ab28d3625859da08e9dad0e07fbb28f7a32
Showing 4 changed files with 21 additions and 0 deletions.
@@ -1,3 +1,17 @@
2012-02-28 Yoshifumi Inoue <yosin@chromium.org>

[Chromium] We should reset mouse position before calling eventSender.mouseMove in LayoutTest
https://bugs.webkit.org/show_bug.cgi?id=79748

Calls eventSender.moveTo(0, 0) before other eventSender.moveTo call to make sure test scripts
get mousemove event.

Reviewed by Kent Tamura.

* fast/forms/number/input-number-events.html:
* fast/forms/number/input-number-large-padding.html:
* fast/forms/number/input-spinbutton-capturing.html:

2012-02-28 Kenichi Ishibashi <bashi@chromium.org>

Unreviewed test expectations update.
@@ -20,6 +20,7 @@

if (window.eventSender) {
debug('Initial state');
eventSender.mouseMoveTo(0, 0);
shouldBe('changeEventCounter', '0');
shouldBe('inputEventCounter', '0');

@@ -12,6 +12,9 @@

var numberInput = document.getElementById('number');
if (window.eventSender) {
// Reset mouse position
eventSender.mouseMoveTo(0, 0);

// Move the cursor on the upper button.
eventSender.mouseMoveTo(numberInput.offsetLeft + numberInput.offsetWidth - 10, numberInput.offsetTop + numberInput.offsetHeight / 4);
eventSender.mouseDown();
@@ -14,6 +14,9 @@
var anotherInput = document.getElementById('another');

if (window.eventSender) {
// Reset mouse position
eventSender.mouseMoveTo(0, 0);

// Move the cursor on the upper button of the first input field.
eventSender.mouseMoveTo(numberInput.offsetLeft + numberInput.offsetWidth - 10, numberInput.offsetTop + numberInput.offsetHeight / 4);

0 comments on commit d99f8ab

Please sign in to comment.