diff options
| author | Nick Dedekind <nicholas.dedekind@gmail.com> | 2013-05-13 19:24:26 +0000 |
|---|---|---|
| committer | Tarmac <> | 2013-05-13 19:24:26 +0000 |
| commit | 56ab8702f006e7bb5347ade57068483571df0d44 (patch) | |
| tree | 121ba47a0b4991c39c89d13a5aa0cc4c0c24400a /tests | |
| parent | 310b1b34a2bd78749ed7232820ec6aaf4d56d872 (diff) | |
| parent | 7d2491cc2ee6d19550bca1926700ad566d212072 (diff) | |
Result preview activated on left single-click. Normal result activation on double-click.
Approved by Michal Hruby, PS Jenkins bot. (bzr r3008.2.133)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/autopilot/unity/emulators/dash.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/autopilot/unity/emulators/dash.py b/tests/autopilot/unity/emulators/dash.py index e9c04c105..4fb72f81d 100644 --- a/tests/autopilot/unity/emulators/dash.py +++ b/tests/autopilot/unity/emulators/dash.py @@ -283,17 +283,19 @@ class Result(UnityIntrospectionObject): self.mouse = get_mouse() self.keyboard = get_keyboard() - def activate(self): + def activate(self, double_click=True): tx = self.x + (self.width / 2) ty = self.y + (self.height / 2) self.mouse.move(tx, ty) self.mouse.click(1) + if double_click: + self.mouse.click(1) - def preview(self): + def preview(self, button=1): tx = self.x + (self.width / 2) ty = self.y + (self.height / 2) self.mouse.move(tx, ty) - self.mouse.click(3) + self.mouse.click(button) def preview_key(self): tx = self.x + (self.width / 2) |
