Bug 1331899 - Capture the full viewport for reftest screenshots, r=gsnedders draft
authorJames Graham <james@hoppipolla.co.uk>
Thu, 12 Jan 2017 19:03:29 +0000
changeset 462996 c4b0ed5c2b3862249f358051fcc0d2d29a1c6cf7
parent 462995 f51ff202bd6c35119220687f5227f942d269d613
child 462997 c0e74a367a462ff2b6cea3dd9f1f76434d78afc9
push id41937
push userbmo:james@hoppipolla.co.uk
push dateWed, 18 Jan 2017 11:30:43 +0000
reviewersgsnedders
bugs1331899
milestone53.0a1
Bug 1331899 - Capture the full viewport for reftest screenshots, r=gsnedders MozReview-Commit-ID: H3k1ckIWBCD
testing/web-platform/harness/wptrunner/executors/executormarionette.py
--- a/testing/web-platform/harness/wptrunner/executors/executormarionette.py
+++ b/testing/web-platform/harness/wptrunner/executors/executormarionette.py
@@ -505,17 +505,17 @@ class MarionetteRefTestExecutor(RefTestE
                              test_url,
                              timeout).run()
 
     def _screenshot(self, marionette, url, timeout):
         marionette.navigate(url)
 
         marionette.execute_async_script(self.wait_script)
 
-        screenshot = marionette.screenshot()
+        screenshot = marionette.screenshot(full=False)
         # strip off the data:img/png, part of the url
         if screenshot.startswith("data:image/png;base64,"):
             screenshot = screenshot.split(",", 1)[1]
 
         return screenshot
 
 
 class WdspecRun(object):