Closed Bug 1532472 Opened 5 years ago Closed 3 years ago

Intermittent testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py TestWindowRect.test_resize_to_available_screen_size | AssertionError: 1600 != 3200

Categories

(Testing :: Marionette Client and Harness, defect, P5)

Version 3
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure, regression)

#[markdown(off)]
Filed by: rmaries [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=231762453&repo=mozilla-inbound

https://queue.taskcluster.net/v1/task/fYRVHESWRvWdD92iaQVFRQ/runs/0/artifacts/public/logs/live_backing.log

[task 2019-03-04T23:06:00.087Z] 23:06:00 INFO - TEST-START | testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py TestWindowRect.test_resize_to_available_screen_size

[task 2019-03-04T23:06:00.397Z] 23:06:00 INFO - TEST-UNEXPECTED-FAIL | testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py TestWindowRect.test_resize_to_available_screen_size | AssertionError: 1600 != 3200
[task 2019-03-04T23:06:00.397Z] 23:06:00 INFO - Traceback (most recent call last):
[task 2019-03-04T23:06:00.399Z] 23:06:00 INFO - File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_harness/marionette_test/testcases.py", line 159, in run
[task 2019-03-04T23:06:00.399Z] 23:06:00 INFO - testMethod()
[task 2019-03-04T23:06:00.400Z] 23:06:00 INFO - File "/builds/worker/workspace/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py", line 217, in test_resize_to_available_screen_size
[task 2019-03-04T23:06:00.400Z] 23:06:00 INFO - self.assertEqual(result_size["width"], expected_size["width"])
[task 2019-03-04T23:06:00.401Z] 23:06:00 INFO - TEST-INFO took 286ms
[task 2019-03-04T23:06:00.402Z] 23:06:00 INFO - 1551740760364 Marionette DEBUG 98 -> [0,13,"Marionette:SetContext",{"value":"content"}]
[task 2019-03-04T23:06:00.402Z] 23:06:00 INFO - 1551740760364 Marionette DEBUG 98 <- [1,13,null,{"value":null}]
[task 2019-03-04T23:06:00.403Z] 23:06:00 INFO - 1551740760365 Marionette DEBUG 98 -> [0,14,"Marionette:GetContext",{}]
[task 2019-03-04T23:06:00.403Z] 23:06:00 INFO - 1551740760365 Marionette DEBUG 98 <- [1,14,null,{"value":"content"}]
[task 2019-03-04T23:06:00.403Z] 23:06:00 INFO - 1551740760366 Marionette DEBUG 98 -> [0,15,"Marionette:SetContext",{"value":"content"}]
[task 2019-03-04T23:06:00.403Z] 23:06:00 INFO - 1551740760366 Marionette DEBUG 98 <- [1,15,null,{"value":null}]
[task 2019-03-04T23:06:00.403Z] 23:06:00 INFO - 1551740760366 Marionette DEBUG 98 -> [0,16,"WebDriver:GetPageSource",{}]
[task 2019-03-04T23:06:00.403Z] 23:06:00 INFO - 1551740760368 Marionette DEBUG 98 <- [1,16,null,{"value":"<html><head></head><body></body></html>"}]
[task 2019-03-04T23:06:00.403Z] 23:06:00 INFO - 1551740760369 Marionette DEBUG 98 -> [0,17,"Marionette:SetContext",{"value":"content"}]
[task 2019-03-04T23:06:00.404Z] 23:06:00 INFO - 1551740760369 Marionette DEBUG 98 <- [1,17,null,{"value":null}]
[task 2019-03-04T23:06:00.404Z] 23:06:00 INFO - 1551740760384 Marionette DEBUG 98 -> [0,18,"WebDriver:SetWindowRect",{"y":0,"x":0,"width":3200,"height":2400}]
[task 2019-03-04T23:06:00.419Z] 23:06:00 INFO - 1551740760407 Marionette DEBUG 98 <- [1,18,null,{"x":0,"y":0,"width":3200,"height":2400}]
[task 2019-03-04T23:06:00.421Z] 23:06:00 INFO - 1551740760416 Marionette DEBUG 98 -> [0,19,"WebDriver:ExecuteScript",{"script":"return document.fullscreenElement;","newSandbox":true,"args":[],"filename":"tests/testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py","sandbox":null,"line":41}]
[task 2019-03-04T23:06:00.429Z] 23:06:00 INFO - 1551740760423 Marionette DEBUG 98 <- [1,19,null,{"value":null}]
[task 2019-03-04T23:06:00.445Z] 23:06:00 INFO - 1551740760440 Marionette DEBUG 98 -> [0,20,"WebDriver:DeleteSession",{}]
[task 2019-03-04T23:06:00.446Z] 23:06:00 INFO - 1551740760442 Marionette DEBUG 98 <- [1,20,null,{"value":null}]

It looks like those strange dimensions are coming from the test test_resize_larger_than_screen which is run directly before:

[task 2019-03-04T23:06:00.040Z] 23:06:00 INFO - 1551740760036 Marionette DEBUG 97 -> [0,10,"WebDriver:SetWindowRect",{"y":0,"x":0,"width":1280,"height":1040}]
[task 2019-03-04T23:06:00.056Z] 23:06:00 INFO - 1551740760053 Marionette DEBUG 97 <- [1,10,null,{"x":0,"y":0,"width":3200,"height":2400}]

And tearDown doesn't seem to correctly reset the window dimensions between tests.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 5 years ago4 years ago
Resolution: --- → INCOMPLETE

This is still happening.

Recent failure: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=303295409&repo=mozilla-central&lineNumber=26001

[task 2020-05-21T23:32:14.572Z] 23:32:14     INFO - TEST-PASS | testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py TestWindowRect.test_resize_larger_than_screen | took 104ms
[task 2020-05-21T23:32:14.572Z] 23:32:14     INFO - TEST-START | testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py TestWindowRect.test_resize_to_available_screen_size
[task 2020-05-21T23:32:14.573Z] 23:32:14     INFO -  1590103934569	Marionette	DEBUG	82 <- [1,12,null,{"value":null}]
[task 2020-05-21T23:32:14.573Z] 23:32:14     INFO -  1590103934571	Marionette	DEBUG	Closed connection 82
[task 2020-05-21T23:32:14.574Z] 23:32:14     INFO -  1590103934573	Marionette	DEBUG	Accepted connection 83 from 127.0.0.1:56520
[task 2020-05-21T23:32:14.575Z] 23:32:14     INFO -  1590103934574	Marionette	DEBUG	83 -> [0,1,"WebDriver:NewSession",{"strictFileInteractability":true}]
[task 2020-05-21T23:32:14.579Z] 23:32:14     INFO -  1590103934576	Marionette	TRACE	[130] Frame script loaded
[task 2020-05-21T23:32:14.579Z] 23:32:14     INFO -  1590103934577	Marionette	TRACE	[130] Frame script registered
[task 2020-05-21T23:32:14.583Z] 23:32:14     INFO -  1590103934580	Marionette	DEBUG	83 <- [1,1,null,{"sessionId":"a1522fdc-c3d2-42ea-b114-0f9a139dfe23","capabilities":{"browserName":"firefox","browserVersion":"78.0a ... mp/tmpfcvasU.mozrunner","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true}}]
[task 2020-05-21T23:32:14.584Z] 23:32:14     INFO -  1590103934582	Marionette	DEBUG	83 -> [0,2,"WebDriver:SetTimeouts",{"script":30000}]
[task 2020-05-21T23:32:14.587Z] 23:32:14     INFO -  1590103934585	Marionette	DEBUG	83 <- [1,2,null,{"value":null}]
[task 2020-05-21T23:32:14.589Z] 23:32:14     INFO -  1590103934586	Marionette	DEBUG	83 -> [0,3,"WebDriver:SetTimeouts",{"pageLoad":300000}]
[task 2020-05-21T23:32:14.589Z] 23:32:14     INFO -  1590103934587	Marionette	DEBUG	83 <- [1,3,null,{"value":null}]
[task 2020-05-21T23:32:14.592Z] 23:32:14     INFO -  1590103934590	Marionette	DEBUG	83 -> [0,4,"WebDriver:SetTimeouts",{"implicit":0}]
[task 2020-05-21T23:32:14.592Z] 23:32:14     INFO -  1590103934591	Marionette	DEBUG	83 <- [1,4,null,{"value":null}]
[task 2020-05-21T23:32:14.593Z] 23:32:14     INFO -  1590103934591	Marionette	DEBUG	83 -> [0,5,"WebDriver:GetWindowRect",{}]
[task 2020-05-21T23:32:14.596Z] 23:32:14     INFO -  1590103934594	Marionette	DEBUG	83 <- [1,5,null,{"x":0,"y":0,"width":3200,"height":2400}]
[task 2020-05-21T23:32:14.597Z] 23:32:14     INFO -  1590103934595	Marionette	DEBUG	83 -> [0,6,"WebDriver:ExecuteScript",{"script":"return {\n              width: window.screen.availWidth,\n              height: win ... [],"filename":"tests/testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py","sandbox":null,"line":22}]
[task 2020-05-21T23:32:14.601Z] 23:32:14     INFO -  1590103934599	Marionette	DEBUG	83 <- [1,6,null,{"value":{"width":1600,"height":1200}}]
[task 2020-05-21T23:32:14.601Z] 23:32:14     INFO -  1590103934600	Marionette	DEBUG	83 -> [0,7,"WebDriver:SetWindowRect",{"y":null,"x":null,"width":3200,"height":2400}]
[task 2020-05-21T23:32:14.616Z] 23:32:14     INFO -  1590103934608	Marionette	DEBUG	83 <- [1,7,null,{"x":0,"y":0,"width":3200,"height":2400}]
[task 2020-05-21T23:32:14.617Z] 23:32:14     INFO -  1590103934608	Marionette	DEBUG	83 -> [0,8,"WebDriver:SetWindowRect",{"y":null,"x":null,"width":1600,"height":1200}]
[task 2020-05-21T23:32:14.624Z] 23:32:14     INFO -  1590103934621	Marionette	DEBUG	83 <- [1,8,null,{"x":0,"y":0,"width":1600,"height":1200}]
[task 2020-05-21T23:32:14.644Z] 23:32:14     INFO -  1590103934636	Marionette	DEBUG	83 -> [0,9,"WebDriver:GetWindowRect",{}]
[task 2020-05-21T23:32:14.645Z] 23:32:14     INFO -  1590103934638	Marionette	DEBUG	83 <- [1,9,null,{"x":0,"y":0,"width":1280,"height":1040}]
[task 2020-05-21T23:32:14.648Z] 23:32:14     INFO -  1590103934644	Marionette	DEBUG	83 -> [0,10,"Marionette:GetContext",{}]
[task 2020-05-21T23:32:14.649Z] 23:32:14     INFO -  1590103934644	Marionette	DEBUG	83 <- [1,10,null,{"value":"content"}]
[task 2020-05-21T23:32:14.649Z] 23:32:14     INFO -  1590103934646	Marionette	DEBUG	83 -> [0,11,"Marionette:SetContext",{"value":"chrome"}]
[task 2020-05-21T23:32:14.650Z] 23:32:14     INFO -  1590103934646	Marionette	DEBUG	83 <- [1,11,null,{"value":null}]
[task 2020-05-21T23:32:14.650Z] 23:32:14     INFO -  1590103934647	Marionette	DEBUG	83 -> [0,12,"WebDriver:TakeScreenshot",{"full":true,"hash":false,"id":null,"scroll":true}]
[task 2020-05-21T23:32:14.706Z] 23:32:14     INFO -  1590103934698	Marionette	DEBUG	83 <- [1,12,null,{"value":"iVBORw0KGgoAAAANSUhEUgAABQAAAAQQCAYAAAC9RfbYAAAgAElEQVR4nOzdfZDcB33fcf/Rmf7fTtOZtkkz08mkeShJmoSWh4aYEKaj ... IAAADAmAAEAAAAgDEBCAAAAABjAhAAAAAAxgQgAAAAAIwJQAAAAAAYE4AAAAAAMCYAAQAAAGBMAAIAAADAmAAEAAAAgLEASIJHejlvtwYAAAAASUVORK5CYII="}]
[task 2020-05-21T23:32:14.735Z] 23:32:14     INFO - TEST-UNEXPECTED-FAIL | testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py TestWindowRect.test_resize_to_available_screen_size | AssertionError: 1280 != 1600
[task 2020-05-21T23:32:14.735Z] 23:32:14     INFO - Traceback (most recent call last):
[task 2020-05-21T23:32:14.735Z] 23:32:14     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_harness/marionette_test/testcases.py", line 159, in run
[task 2020-05-21T23:32:14.735Z] 23:32:14     INFO -     testMethod()
[task 2020-05-21T23:32:14.735Z] 23:32:14     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py", line 217, in test_resize_to_available_screen_size
[task 2020-05-21T23:32:14.735Z] 23:32:14     INFO -     self.assertEqual(result_size["width"], expected_size["width"])
[task 2020-05-21T23:32:14.735Z] 23:32:14     INFO - TEST-INFO took 144ms
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → INCOMPLETE
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 4 years ago3 years ago
Resolution: --- → INCOMPLETE

This is still happening.

Recent failure: https://treeherder.mozilla.org/logviewer?job_id=328177433&repo=autoland&lineNumber=32758

[task 2021-01-29T08:14:03.850Z] 08:14:03     INFO - TEST-START | testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py TestWindowRect.test_resize_to_available_screen_size
[task 2021-01-29T08:14:03.858Z] 08:14:03     INFO -  1611908043851	Marionette	DEBUG	Closed connection 88
[task 2021-01-29T08:14:03.858Z] 08:14:03     INFO -  1611908043852	Marionette	DEBUG	Accepted connection 89 from 127.0.0.1:34430
[task 2021-01-29T08:14:03.858Z] 08:14:03     INFO -  1611908043853	Marionette	DEBUG	89 -> [0,1,"WebDriver:NewSession",{"strictFileInteractability":true}]
[task 2021-01-29T08:14:03.859Z] 08:14:03     INFO -  1611908043856	Marionette	DEBUG	89 <- [1,1,null,{"sessionId":"79e2be0a-b918-4175-8f14-cfdc90d6a81e","capabilities":{"browserName":"firefox","browserVersion":"87.0a ... mp/tmpy_vu56.mozrunner","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true}}]
[task 2021-01-29T08:14:03.874Z] 08:14:03     INFO -  1611908043867	Marionette	DEBUG	89 -> [0,2,"WebDriver:SetTimeouts",{"script":30000}]
[task 2021-01-29T08:14:03.874Z] 08:14:03     INFO -  1611908043867	Marionette	DEBUG	89 <- [1,2,null,{"value":null}]
[task 2021-01-29T08:14:03.876Z] 08:14:03     INFO -  1611908043868	Marionette	DEBUG	89 -> [0,3,"WebDriver:SetTimeouts",{"pageLoad":300000}]
[task 2021-01-29T08:14:03.876Z] 08:14:03     INFO -  1611908043869	Marionette	DEBUG	89 <- [1,3,null,{"value":null}]
[task 2021-01-29T08:14:03.883Z] 08:14:03     INFO -  1611908043880	Marionette	DEBUG	89 -> [0,4,"WebDriver:SetTimeouts",{"implicit":0}]
[task 2021-01-29T08:14:03.883Z] 08:14:03     INFO -  1611908043880	Marionette	DEBUG	89 <- [1,4,null,{"value":null}]
[task 2021-01-29T08:14:03.883Z] 08:14:03     INFO -  1611908043882	Marionette	DEBUG	89 -> [0,5,"WebDriver:GetWindowRect",{}]
[task 2021-01-29T08:14:03.886Z] 08:14:03     INFO -  1611908043883	Marionette	DEBUG	89 <- [1,5,null,{"x":0,"y":0,"width":3200,"height":2400}]
[task 2021-01-29T08:14:03.896Z] 08:14:03     INFO -  [Child 4563, Main Thread] WARNING: Scrolled rect smaller than scrollport?: file /builds/worker/checkouts/gecko/layout/generic/nsGfxScrollFrame.cpp:6942
[task 2021-01-29T08:14:03.896Z] 08:14:03     INFO -  [Child 4563, Main Thread] WARNING: Scrolled rect smaller than scrollport?: file /builds/worker/checkouts/gecko/layout/generic/nsGfxScrollFrame.cpp:6945
[task 2021-01-29T08:14:03.911Z] 08:14:03     INFO -  1611908043906	Marionette	DEBUG	89 -> [0,6,"WebDriver:ExecuteScript",{"script":"return {\n              width: window.screen.availWidth,\n              height: win ... [],"filename":"tests/testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py","sandbox":null,"line":23}]
[task 2021-01-29T08:14:03.912Z] 08:14:03     INFO -  1611908043908	Marionette	TRACE	[126] MarionetteCommands actor created for window id 6442450971
[task 2021-01-29T08:14:03.920Z] 08:14:03     INFO -  1611908043913	Marionette	DEBUG	89 <- [1,6,null,{"value":{"width":1600,"height":1200}}]
[task 2021-01-29T08:14:03.920Z] 08:14:03     INFO -  1611908043914	Marionette	DEBUG	89 -> [0,7,"WebDriver:SetWindowRect",{"y":null,"x":null,"width":3200,"height":2400}]
[task 2021-01-29T08:14:03.940Z] 08:14:03     INFO -  1611908043938	Marionette	DEBUG	89 <- [1,7,null,{"x":0,"y":0,"width":3200,"height":2400}]
[task 2021-01-29T08:14:03.941Z] 08:14:03     INFO -  1611908043939	Marionette	DEBUG	89 -> [0,8,"WebDriver:SetWindowRect",{"y":null,"x":null,"width":1600,"height":1200}]
[task 2021-01-29T08:14:03.959Z] 08:14:03     INFO -  [Child 4563, Main Thread] WARNING: Scrolled rect smaller than scrollport?: file /builds/worker/checkouts/gecko/layout/generic/nsGfxScrollFrame.cpp:6942
[task 2021-01-29T08:14:03.959Z] 08:14:03     INFO -  [Child 4563, Main Thread] WARNING: Scrolled rect smaller than scrollport?: file /builds/worker/checkouts/gecko/layout/generic/nsGfxScrollFrame.cpp:6945
[task 2021-01-29T08:14:03.959Z] 08:14:03     INFO -  1611908043957	Marionette	DEBUG	89 <- [1,8,null,{"x":0,"y":0,"width":3200,"height":2400}]
[task 2021-01-29T08:14:04.015Z] 08:14:04     INFO -  [Child 4563, Main Thread] WARNING: Scrolled rect smaller than scrollport?: file /builds/worker/checkouts/gecko/layout/generic/nsGfxScrollFrame.cpp:6942
[task 2021-01-29T08:14:04.015Z] 08:14:04     INFO -  [Child 4563, Main Thread] WARNING: Scrolled rect smaller than scrollport?: file /builds/worker/checkouts/gecko/layout/generic/nsGfxScrollFrame.cpp:6945
[task 2021-01-29T08:14:04.032Z] 08:14:04     INFO -  1611908044025	Marionette	DEBUG	89 -> [0,9,"WebDriver:GetWindowRect",{}]
[task 2021-01-29T08:14:04.032Z] 08:14:04     INFO -  1611908044026	Marionette	DEBUG	89 <- [1,9,null,{"x":0,"y":0,"width":1600,"height":1200}]
[task 2021-01-29T08:14:04.032Z] 08:14:04     INFO -  1611908044027	Marionette	DEBUG	89 -> [0,10,"Marionette:GetContext",{}]
[task 2021-01-29T08:14:04.032Z] 08:14:04     INFO -  1611908044027	Marionette	DEBUG	89 <- [1,10,null,{"value":"content"}]
[task 2021-01-29T08:14:04.032Z] 08:14:04     INFO -  1611908044028	Marionette	DEBUG	89 -> [0,11,"Marionette:SetContext",{"value":"chrome"}]
[task 2021-01-29T08:14:04.032Z] 08:14:04     INFO -  1611908044028	Marionette	DEBUG	89 <- [1,11,null,{"value":null}]
[task 2021-01-29T08:14:04.032Z] 08:14:04     INFO -  1611908044029	Marionette	DEBUG	89 -> [0,12,"WebDriver:TakeScreenshot",{"full":true,"hash":false,"id":null,"scroll":true}]
[task 2021-01-29T08:14:04.035Z] 08:14:04     INFO -  1611908044032	Marionette	TRACE	[1] MarionetteCommands actor created for window id 2
[task 2021-01-29T08:14:04.112Z] 08:14:04     INFO -  1611908044104	Marionette	DEBUG	89 <- [1,12,null,{"value":"iVBORw0KGgoAAAANSUhEUgAABkAAAASwCAYAAACjAYaXAAAgAElEQVR4nOzda5DdhXnfcV50pu/baTrTNmlmMpk0lzpJk7i1TePIcZyO ... AAAOwIEAAAAAAAYEeAAAAAAAAAOwIEAAAAAADYESAAAAAAAMCOAAEAAAAAAHYECAAAAAAAsCNAAAAAAACAHQECAAAAAADsBGf5bJzyyoVSAAAAAElFTkSuQmCC"}]
[task 2021-01-29T08:14:04.112Z] 08:14:04     INFO -  1611908044107	Marionette	DEBUG	89 -> [0,13,"Marionette:SetContext",{"value":"content"}]
[task 2021-01-29T08:14:04.112Z] 08:14:04     INFO -  1611908044107	Marionette	DEBUG	89 <- [1,13,null,{"value":null}]
[task 2021-01-29T08:14:04.112Z] 08:14:04     INFO -  1611908044108	Marionette	DEBUG	89 -> [0,14,"Marionette:GetContext",{}]
[task 2021-01-29T08:14:04.112Z] 08:14:04     INFO -  1611908044108	Marionette	DEBUG	89 <- [1,14,null,{"value":"content"}]
[task 2021-01-29T08:14:04.112Z] 08:14:04     INFO -  1611908044109	Marionette	DEBUG	89 -> [0,15,"Marionette:SetContext",{"value":"content"}]
[task 2021-01-29T08:14:04.112Z] 08:14:04     INFO -  1611908044109	Marionette	DEBUG	89 <- [1,15,null,{"value":null}]
[task 2021-01-29T08:14:04.112Z] 08:14:04     INFO -  1611908044110	Marionette	DEBUG	89 -> [0,16,"WebDriver:GetPageSource",{}]
[task 2021-01-29T08:14:04.115Z] 08:14:04     INFO -  1611908044113	Marionette	DEBUG	89 <- [1,16,null,{"value":"<html><head></head><body></body></html>"}]
[task 2021-01-29T08:14:04.116Z] 08:14:04     INFO -  1611908044114	Marionette	DEBUG	89 -> [0,17,"Marionette:SetContext",{"value":"content"}]
[task 2021-01-29T08:14:04.137Z] 08:14:04     INFO - TEST-UNEXPECTED-FAIL | testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py TestWindowRect.test_resize_to_available_screen_size | AssertionError: 1600 != 3200
[task 2021-01-29T08:14:04.137Z] 08:14:04     INFO - Traceback (most recent call last):
[task 2021-01-29T08:14:04.137Z] 08:14:04     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_harness/marionette_test/testcases.py", line 214, in run
[task 2021-01-29T08:14:04.137Z] 08:14:04     INFO -     testMethod()
[task 2021-01-29T08:14:04.137Z] 08:14:04     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py", line 299, in test_resize_to_available_screen_size
[task 2021-01-29T08:14:04.137Z] 08:14:04     INFO -     self.assertEqual(result_size["width"], expected_size["width"])
[task 2021-01-29T08:14:04.137Z] 08:14:04     INFO - TEST-INFO took 267ms
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

The problem here is that we aren't awaiting long enough but immediately return. It means that the request for the wanted size hasn't been processed yet, and we just return the requested values. It would be good to have bug 1522855 fixed first.

Depends on: 1522855
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INCOMPLETE
Product: Testing → Remote Protocol
Moving bug to Testing::Marionette Client and Harness component per bug 1815831.
Component: Marionette → Marionette Client and Harness
Product: Remote Protocol → Testing
You need to log in before you can comment on or make changes to this bug.