OLD | NEW |
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 Loading... |
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 Loading... |
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() |
OLD | NEW |