Bug 1285085 - Testing for a windows 4x larger than the screen in each dimension should be enough for this test. r=whimboo, a=test-only
authorMilan Sreckovic <milan@mozilla.com>
Fri, 09 Sep 2016 12:42:34 -0400
changeset 350180 b1a01538f4be47f4aad926d67e01e49de6b77d40
parent 350179 cdf6988ace7810606807d1a1d73cfb06b08dc93a
child 350181 49aad1174d84f9c896de2df971ca0af797478c8e
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswhimboo, test-only
bugs1285085
milestone50.0a2
Bug 1285085 - Testing for a windows 4x larger than the screen in each dimension should be enough for this test. r=whimboo, a=test-only MozReview-Commit-ID: 4r6N0Xkrm6j
testing/marionette/harness/marionette/tests/unit/test_set_window_size.py
--- a/testing/marionette/harness/marionette/tests/unit/test_set_window_size.py
+++ b/testing/marionette/harness/marionette/tests/unit/test_set_window_size.py
@@ -50,17 +50,17 @@ class TestSetWindowSize(MarionetteTestCa
         size = self.marionette.set_window_size(width, height)
         self.assertIsNotNone(size, "Response is None")
         self.assertEqual(size['width'], width,
                          "New width is %s but should be %s" % (size['width'], width))
         self.assertEqual(size['height'], height,
                          "New height is %s but should be %s" % (size['height'], height))
 
     def test_possible_to_request_window_larger_than_screen(self):
-        self.marionette.set_window_size(100000, 100000)
+        self.marionette.set_window_size(4 * self.max_width, 4 * self.max_height)
         size = self.marionette.window_size
 
         # In X the window size may be greater than the bounds of the screen
         self.assertGreaterEqual(size["width"], self.max_width)
         self.assertGreaterEqual(size["height"], self.max_height)
 
     def test_that_we_can_maximise_the_window(self):
         # valid size