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

Unified Diff: gm/rebaseline_server/compare_rendered_pictures_test.py

Issue 442203002: rebaseline_server live queries: allow comparison against summary files within the Skia repo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: "repo:", man 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
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 5ddaf1001786963182d5a1b281f9edc9ff28d572..c6e0e79c2b308757e0e5c426db68eba23658af36 100755
--- a/gm/rebaseline_server/compare_rendered_pictures_test.py
+++ b/gm/rebaseline_server/compare_rendered_pictures_test.py
@@ -68,6 +68,24 @@ class CompareRenderedPicturesTest(base_unittest.TestCase):
results.KEY__HEADER__RESULTS_ALL),
os.path.join(self.output_dir_actual, 'compare_rendered_pictures.json'))
+ def test_repo_url(self):
+ """Use repo: URL to specify summary files."""
+ results_obj = compare_rendered_pictures.RenderedPicturesComparisons(
+ setA_dirs=[
+ 'repo:gm/rebaseline_server/testdata/inputs/skp-actuals/setA'],
+ setB_dirs=[
+ 'repo:gm/rebaseline_server/testdata/inputs/skp-actuals/setB'],
+ 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', setB_label='setB')
+ results_obj.get_timestamp = mock_get_timestamp
+
+ gm_json.WriteToFile(
+ results_obj.get_packaged_results_of_type(
+ results.KEY__HEADER__RESULTS_ALL),
+ os.path.join(self.output_dir_actual, 'compare_rendered_pictures.json'))
+
def _generate_skps_and_run_render_pictures(self, subdir, skpdict):
"""Generate SKPs and run render_pictures on them.
« no previous file with comments | « gm/rebaseline_server/compare_rendered_pictures.py ('k') | gm/rebaseline_server/testdata/inputs/skp-actuals/setA/summary.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698