Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: tools/tests/render_pictures_test.py

Issue 343813006: Drop --clone from skia (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gm/rebaseline_server/compare_rendered_pictures_test.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 """ 3 """
4 Copyright 2014 Google Inc. 4 Copyright 2014 Google Inc.
5 5
6 Use of this source code is governed by a BSD-style license that can be 6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file. 7 found in the LICENSE file.
8 8
9 Test the render_pictures binary. 9 Test the render_pictures binary.
10 """ 10 """
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 ['bitmap-64bitMD5_12587324416545178013.png', 548 ['bitmap-64bitMD5_12587324416545178013.png',
549 'bitmap-64bitMD5_7624374914829746293.png', 549 'bitmap-64bitMD5_7624374914829746293.png',
550 'bitmap-64bitMD5_5686489729535631913.png', 550 'bitmap-64bitMD5_5686489729535631913.png',
551 'bitmap-64bitMD5_7980646035555096146.png', 551 'bitmap-64bitMD5_7980646035555096146.png',
552 'bitmap-64bitMD5_17817086664365875131.png', 552 'bitmap-64bitMD5_17817086664365875131.png',
553 'bitmap-64bitMD5_10673669813016809363.png']) 553 'bitmap-64bitMD5_10673669813016809363.png'])
554 554
555 def _run_render_pictures(self, args): 555 def _run_render_pictures(self, args):
556 binary = self.find_path_to_program('render_pictures') 556 binary = self.find_path_to_program('render_pictures')
557 return self.run_command([binary, 557 return self.run_command([binary,
558 '--clone', '1',
559 '--config', '8888', 558 '--config', '8888',
560 ] + args) 559 ] + args)
561 560
562 def _create_expectations(self, missing_some_images=False, 561 def _create_expectations(self, missing_some_images=False,
563 rel_path='expectations.json'): 562 rel_path='expectations.json'):
564 """Creates expectations JSON file within self._expectations_dir . 563 """Creates expectations JSON file within self._expectations_dir .
565 564
566 Args: 565 Args:
567 missing_some_images: (bool) whether to remove expectations for a subset 566 missing_some_images: (bool) whether to remove expectations for a subset
568 of the images 567 of the images
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 self.assertMultiLineEqual(prettyprinted_expected_dict, 657 self.assertMultiLineEqual(prettyprinted_expected_dict,
659 prettyprinted_json_dict) 658 prettyprinted_json_dict)
660 659
661 660
662 def main(): 661 def main():
663 base_unittest.main(RenderPicturesTest) 662 base_unittest.main(RenderPicturesTest)
664 663
665 664
666 if __name__ == '__main__': 665 if __name__ == '__main__':
667 main() 666 main()
OLDNEW
« no previous file with comments | « gm/rebaseline_server/compare_rendered_pictures_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698