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

Unified Diff: gm/rebaseline_server/compare_rendered_pictures_test.py

Issue 424263005: teach rebaseline_server to generate diffs of rendered SKPs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Ravi comments Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/rebaseline_server/compare_rendered_pictures.py ('k') | gm/rebaseline_server/imagediffdb.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/rebaseline_server/compare_rendered_pictures_test.py
diff --git a/gm/rebaseline_server/compare_rendered_pictures_test.py b/gm/rebaseline_server/compare_rendered_pictures_test.py
index a8041ec8025083b65edf5d42db7251303b29a6cb..5ddaf1001786963182d5a1b281f9edc9ff28d572 100755
--- a/gm/rebaseline_server/compare_rendered_pictures_test.py
+++ b/gm/rebaseline_server/compare_rendered_pictures_test.py
@@ -30,6 +30,7 @@ import base_unittest
import compare_rendered_pictures
import find_run_binary
import gm_json
+import imagediffdb
import results
@@ -38,24 +39,28 @@ class CompareRenderedPicturesTest(base_unittest.TestCase):
def test_endToEnd(self):
"""Generate two sets of SKPs, run render_pictures over both, and compare
the results."""
+ setA_label = 'before_patch'
+ setB_label = 'after_patch'
self._generate_skps_and_run_render_pictures(
- subdir='before_patch', skpdict={
+ subdir=setA_label, skpdict={
'changed.skp': 200,
'unchanged.skp': 100,
'only-in-before.skp': 128,
})
self._generate_skps_and_run_render_pictures(
- subdir='after_patch', skpdict={
+ subdir=setB_label, skpdict={
'changed.skp': 201,
'unchanged.skp': 100,
'only-in-after.skp': 128,
})
results_obj = compare_rendered_pictures.RenderedPicturesComparisons(
- actuals_root=self.temp_dir,
- subdirs=('before_patch', 'after_patch'),
- generated_images_root=self.temp_dir,
- diff_base_url='/static/generated-images')
+ setA_dirs=[os.path.join(self.temp_dir, setA_label)],
+ setB_dirs=[os.path.join(self.temp_dir, setB_label)],
+ image_diff_db=imagediffdb.ImageDiffDB(self.temp_dir),
+ image_base_gs_url='gs://fakebucket/fake/path',
+ diff_base_url='/static/generated-images',
+ setA_label=setA_label, setB_label=setB_label)
results_obj.get_timestamp = mock_get_timestamp
gm_json.WriteToFile(
« no previous file with comments | « gm/rebaseline_server/compare_rendered_pictures.py ('k') | gm/rebaseline_server/imagediffdb.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698