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

Side by Side Diff: tools/test_pictures.py

Issue 124253002: add unittest for render_pictures binary (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 11 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 | « no previous file | tools/test_rendering.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ''' 1 '''
2 Copyright 2012 Google Inc.
3
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
6
2 Compares the rendererings of serialized SkPictures to expected images. 7 Compares the rendererings of serialized SkPictures to expected images.
3 8
4 Launch with --help to see more information. 9 Launch with --help to see more information.
5 10
6 11 TODO(epoger): Combine with overlapping tools/tests/render_pictures_test.py .
7 Copyright 2012 Google Inc. 12 See https://code.google.com/p/skia/issues/detail?id=1943#c2
8
9 Use of this source code is governed by a BSD-style license that can be
10 found in the LICENSE file.
11 ''' 13 '''
12 # common Python modules 14 # common Python modules
13 import os 15 import os
14 import optparse 16 import optparse
15 import sys 17 import sys
16 import shutil 18 import shutil
17 import tempfile 19 import tempfile
18 20
19 # modules declared within this same directory 21 # modules declared within this same directory
20 import test_rendering 22 import test_rendering
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 90
89 if (options.device is not None): 91 if (options.device is not None):
90 extra_args += ' --device %s' % options.device 92 extra_args += ' --device %s' % options.device
91 93
92 test_rendering.TestRenderSkps(inputs, expected_dir, options.render_dir, 94 test_rendering.TestRenderSkps(inputs, expected_dir, options.render_dir,
93 options.diff_dir, 'render_pictures', 95 options.diff_dir, 'render_pictures',
94 extra_args) 96 extra_args)
95 97
96 if __name__ == '__main__': 98 if __name__ == '__main__':
97 Main(sys.argv) 99 Main(sys.argv)
OLDNEW
« no previous file with comments | « no previous file | tools/test_rendering.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698