Bug 1331899 - Capture the full viewport for reftest screenshots, r=gsnedders
authorJames Graham <james@hoppipolla.co.uk>
Thu, 12 Jan 2017 19:03:29 +0000
changeset 330074 e3eb95a2fa40d6ff908041ef9a4e395363279299
parent 330073 e019af713fb2688e3b9614716111c3bd89320881
child 330075 2f984d729523af6bdcbfd4d1b624658b7e6cbd0a
push id85890
push userjames@hoppipolla.co.uk
push dateThu, 19 Jan 2017 14:28:37 +0000
treeherdermozilla-inbound@cf7aaeb55da0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgsnedders
bugs1331899
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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):