| 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 | |
| 11 TODO(epoger): Combine with overlapping tools/test_rendering.py and | |
| 12 tools/test_pictures.py . | |
| 13 See https://code.google.com/p/skia/issues/detail?id=1943#c2 | |
| 14 """ | 10 """ |
| 15 | 11 |
| 16 # System-level imports | 12 # System-level imports |
| 17 import json | 13 import json |
| 18 import os | 14 import os |
| 19 import shutil | 15 import shutil |
| 20 import tempfile | 16 import tempfile |
| 21 | 17 |
| 22 # Imports from within Skia | 18 # Imports from within Skia |
| 23 import base_unittest | 19 import base_unittest |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 actual_dict = json.loads(file_contents) | 118 actual_dict = json.loads(file_contents) |
| 123 self.assertEqual(actual_dict, expected_dict) | 119 self.assertEqual(actual_dict, expected_dict) |
| 124 | 120 |
| 125 | 121 |
| 126 def main(): | 122 def main(): |
| 127 base_unittest.main(RenderPicturesTest) | 123 base_unittest.main(RenderPicturesTest) |
| 128 | 124 |
| 129 | 125 |
| 130 if __name__ == '__main__': | 126 if __name__ == '__main__': |
| 131 main() | 127 main() |
| OLD | NEW |