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

Unified Diff: gm/gm_json.py

Issue 18103005: Create jsondiff tool to capture diffs between two JSON expectations files. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: fix_self_test Created 7 years, 6 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 | « no previous file | tools/jsondiff.py » ('j') | tools/jsondiff.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gm_json.py
===================================================================
--- gm/gm_json.py (revision 9864)
+++ gm/gm_json.py (working copy)
@@ -23,6 +23,12 @@
JSONKEY_ACTUALRESULTS_NOCOMPARISON = 'no-comparison'
JSONKEY_ACTUALRESULTS_SUCCEEDED = 'succeeded'
+JSONKEY_EXPECTEDRESULTS = 'expected-results'
+JSONKEY_EXPECTEDRESULTS_ALLOWEDDIGESTS = 'allowed-digests'
+JSONKEY_EXPECTEDRESULTS_IGNOREFAILURE = 'ignore-failure'
+
+JSONKEY_HASHTYPE_BITMAP_64BITMD5 = 'bitmap-64bitMD5'
+
def LoadFromString(file_contents):
"""Loads the JSON summary written out by the GM tool.
Returns a dictionary keyed by the values listed as JSONKEY_ constants
« no previous file with comments | « no previous file | tools/jsondiff.py » ('j') | tools/jsondiff.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698