Bug 1381876 - Compare window rect, not window size. r=automatedtester

The dictionary from Marionette#window_size is a subset of what is returned
from Marionette#window_rect, causing the self.assertEqual to complain
that they are not equal.  We want to compare the same types.

MozReview-Commit-ID: L4XTlgtUYKW

--HG--
extra : rebase_source : c3adf89777ac589cab2fb84fe3e543f22d9895fc
This commit is contained in:
Andreas Tolfsen 2017-08-01 18:21:04 +01:00
Родитель 107a4758fb
Коммит e6fdbe4caf
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -60,11 +60,11 @@ class TestWindowMaximize(MarionetteTestCase):
self.assertIsInstance(rect["y"], int)
def test_maximize(self):
rect = self.marionette.maximize_window()
self.assert_window_rect(rect)
size = self.marionette.window_size
self.assertEqual(size, rect)
self.assert_window_maximized(size)
maximize_resp = self.marionette.maximize_window()
self.assert_window_rect(maximize_resp)
window_rect_resp = self.marionette.window_rect
self.assertEqual(maximize_resp, window_rect_resp)
self.assert_window_maximized(maximize_resp)
def test_maximize_twice_restores(self):
maximized = self.marionette.maximize_window()