I’m observing something interesting (and really puzzling). If in the
autopilot test I replace this code:

    self.pointing_device.click_object(action_button)

by

    self.pointing_device.move(
        action_button.globalRect.x + action_button.width * 0.5,
        action_button.globalRect.y + action_button.height * 0.5)
    self.pointing_device.click()

The bug still happens.
But if I now replace 0.5 in the calculations above by 0.49999, the test passes.

There is something fishy going on with mouse coordinates.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1417118

Title:
  test_looses_focus_when_reloading fails when run on desktop

To manage notifications about this bug go to:
https://bugs.launchpad.net/webbrowser-app/+bug/1417118/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to