diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-06 15:17:28 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-06 15:17:28 +0000 |
commit | 1c188ed9fa70e50db1471bdbf683135c39ea85be (patch) | |
tree | a163245eafdd46d27826c72a5ab29bd2c9b37c06 /gm/rebaseline_server/static/view.html | |
parent | 940e3bac13291d95ffa811b233329196335fb3f4 (diff) |
rebaseline_server: get "image size" working again
BUG=skia:2134
NOTRY=True
R=rmistry@google.com
Author: epoger@google.com
Review URL: https://codereview.chromium.org/155973003
git-svn-id: http://skia.googlecode.com/svn/trunk@13343 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/rebaseline_server/static/view.html')
-rw-r--r-- | gm/rebaseline_server/static/view.html | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/gm/rebaseline_server/static/view.html b/gm/rebaseline_server/static/view.html index f756dcc5d7..46d6ab8be1 100644 --- a/gm/rebaseline_server/static/view.html +++ b/gm/rebaseline_server/static/view.html @@ -115,7 +115,7 @@ </td> <td><table> <tr><td> - Image size + Image width <input type="text" ng-model="imageSizePending" ng-init="imageSizePending=100" ng-change="areUpdatesPending = true" @@ -302,25 +302,23 @@ </td> <!-- expected image --> - <td valign="top" width="{{imageSize}}"> - <br/> + <td valign="bottom" width="{{imageSize}}"> <a href="http://chromium-skia-gm.commondatastorage.googleapis.com/gm/{{result.expectedHashType}}/{{result.test}}/{{result.expectedHashDigest}}.png" target="_blank">View Image</a><br/> - <img-compare type="baseline" + <img-compare type="baseline" width="{{imageSize}}" src="http://chromium-skia-gm.commondatastorage.googleapis.com/gm/{{result.expectedHashType}}/{{result.test}}/{{result.expectedHashDigest}}.png" /> </td> <!-- actual image --> - <td valign="top" width="{{imageSize}}"> - <br/> + <td valign="bottom" width="{{imageSize}}"> <a href="http://chromium-skia-gm.commondatastorage.googleapis.com/gm/{{result.actualHashType}}/{{result.test}}/{{result.actualHashDigest}}.png" target="_blank">View Image</a><br/> - <img-compare type="test" + <img-compare type="test" width="{{imageSize}}" src="http://chromium-skia-gm.commondatastorage.googleapis.com/gm/{{result.actualHashType}}/{{result.test}}/{{result.actualHashDigest}}.png" /> </td> <!-- whitediffs: every differing pixel shown in white --> - <td valign="top" width="{{imageSize}}"> + <td valign="bottom" width="{{imageSize}}"> <div ng-hide="result.expectedHashDigest == result.actualHashDigest" title="{{result.numDifferingPixels | number:0}} of {{(100 * result.numDifferingPixels / result.percentDifferingPixels) | number:0}} pixels ({{result.percentDifferingPixels.toFixed(4)}}%) differ from expectation."> @@ -328,7 +326,7 @@ ({{result.numDifferingPixels}}) <br/> <a href="/static/generated-images/whitediffs/{{result.expectedHashDigest}}-vs-{{result.actualHashDigest}}.png" target="_blank">View Image</a><br/> - <img-compare type="differingPixelsInWhite" + <img-compare type="differingPixelsInWhite" width="{{imageSize}}" src="/static/generated-images/whitediffs/{{result.expectedHashDigest}}-vs-{{result.actualHashDigest}}.png" /> </div> @@ -339,7 +337,7 @@ </td> <!-- diffs: per-channel RGB deltas --> - <td valign="top" width="{{imageSize}}"> + <td valign="bottom" width="{{imageSize}}"> <div ng-hide="result.expectedHashDigest == result.actualHashDigest" title="Weighted difference measure is {{result.weightedDiffMeasure.toFixed(4)}}%. Maximum difference per channel: R={{result.maxDiffPerChannel[0]}}, G={{result.maxDiffPerChannel[1]}}, B={{result.maxDiffPerChannel[2]}}"> @@ -348,7 +346,7 @@ <br/> <a href="/static/generated-images/diffs/{{result.expectedHashDigest}}-vs-{{result.actualHashDigest}}.png" target="_blank">View Image</a><br/> <img-compare ng-style="{backgroundColor: pixelDiffBgColor}" - type="differencePerPixel" + type="differencePerPixel" width="{{imageSize}}" src="/static/generated-images/diffs/{{result.expectedHashDigest}}-vs-{{result.actualHashDigest}}.png" ng-mousedown="MagnifyDraw($event, true)" ng-mousemove="MagnifyDraw($event, false)" |