summaryrefslogtreecommitdiff
path: root/tests
diff options
authorStephen M. Webb <stephen.webb@canonical.com>2015-04-10 21:58:43 +0000
committerCI Train Bot <ci-train-bot@canonical.com>2015-04-10 21:58:43 +0000
commit65413ca957fd0e0c6ba647e07d46a65c1a6d30ec (patch)
tree7a428f16fad5ce42ea0a90c86f2243a23df7b525 /tests
parent9ad224ebcf3099700b2928c0e23b283b4bd3c4c0 (diff)
parent6503c376e88b24fda4e0ea05097ef8e71fde83ca (diff)
test_wm_keybindings: fix AP failures caused by upstream Compiz change Fixes: #1294864
Approved by: Christopher Townsend (bzr r3948)
Diffstat (limited to 'tests')
-rw-r--r--tests/autopilot/unity/tests/test_wm_keybindings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/autopilot/unity/tests/test_wm_keybindings.py b/tests/autopilot/unity/tests/test_wm_keybindings.py
index f385fc322..f6dec986a 100644
--- a/tests/autopilot/unity/tests/test_wm_keybindings.py
+++ b/tests/autopilot/unity/tests/test_wm_keybindings.py
@@ -150,7 +150,7 @@ class WindowManagerKeybindingsForWindowHandling(UnityTestCase):
workarea_geo = self.get_window_workarea()
self.assertThat(self.screen_win.x, Eventually(Equals(workarea_geo[0])))
self.assertThat(self.screen_win.y, Eventually(Equals(workarea_geo[1])))
- self.assertThat(self.screen_win.width, Eventually(Equals(workarea_geo[2]/2)))
+ self.assertThat(self.screen_win.width, Eventually(Equals(int(workarea_geo[2]/2.0 + 0.5))))
self.assertThat(self.screen_win.height, Eventually(Equals(workarea_geo[3])))
def test_right_maximize(self):
@@ -162,5 +162,5 @@ class WindowManagerKeybindingsForWindowHandling(UnityTestCase):
workarea_geo = self.get_window_workarea()
self.assertThat(self.screen_win.x, Eventually(Equals(workarea_geo[0]+workarea_geo[2]/2)))
self.assertThat(self.screen_win.y, Eventually(Equals(workarea_geo[1])))
- self.assertThat(self.screen_win.width, Eventually(Equals(workarea_geo[2]/2)))
+ self.assertThat(self.screen_win.width, Eventually(Equals(int(workarea_geo[2]/2.0 + 0.5))))
self.assertThat(self.screen_win.height, Eventually(Equals(workarea_geo[3])))