make rebaseline_server client check schema version number

(SkipBuildbotRuns)
NOTREECHECKS=True
NOTRY=True
R=rmistry@google.com

Author: epoger@google.com

Review URL: https://codereview.chromium.org/195763013

git-svn-id: http://skia.googlecode.com/svn/trunk@13792 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
commit-bot@chromium.org 2014-03-13 17:44:01 +00:00
parent 98e22b84ca
commit addcddeda6

View File

@ -89,6 +89,12 @@ Loader.controller(
$timeout(
function(){location.reload();},
timeToReload - timeNow);
} else if (dataHeader[constants.KEY__HEADER__SCHEMA_VERSION] !=
constants.REBASELINE_SERVER_SCHEMA_VERSION_NUMBER) {
$scope.loadingMessage = "ERROR: Got JSON file with schema version "
+ dataHeader[constants.KEY__HEADER__SCHEMA_VERSION]
+ " but expected schema version "
+ constants.REBASELINE_SERVER_SCHEMA_VERSION_NUMBER;
} else {
$scope.loadingMessage = "Processing data, please wait...";