Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 818287 - Support screenshots without a data URL prefix. r=dhunt
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastiaan de Haan authored and davehunt committed Nov 1, 2013
1 parent 44ed9e1 commit d654c10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/python/gaia-ui-tests/gaiatest/runtests.py
Expand Up @@ -96,7 +96,11 @@ def gather_debug(self):
try:
# TODO make screenshot consistant size by using full viewport
# Bug 883294 - Add ability to take full viewport screenshots
debug['screenshot'] = self.marionette.screenshot()[22:]
# TODO Bug 838287 - remove condition after marionette release.
screenshot = self.marionette.screenshot()
if screenshot.startswith('data:'):
screenshot = screenshot[22:]
debug['screenshot'] = screenshot
debug['source'] = self.marionette.page_source
self.marionette.switch_to_frame()
debug['settings'] = json.dumps(self.marionette.execute_async_script("""
Expand Down

0 comments on commit d654c10

Please sign in to comment.