summaryrefslogtreecommitdiffstats
path: root/chrome/test/ispy/server/views/main_view.html
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-07 23:00:08 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-07 23:00:08 +0000
commitdb86ab950e6080b47a1614559c927c5097cf7422 (patch)
treea37660da46d5db696a8692e929dcf4639e2b2849 /chrome/test/ispy/server/views/main_view.html
parent56afb710b66563f20c2e55e915687c573940a2ee (diff)
downloadchromium_src-db86ab950e6080b47a1614559c927c5097cf7422.zip
chromium_src-db86ab950e6080b47a1614559c927c5097cf7422.tar.gz
chromium_src-db86ab950e6080b47a1614559c927c5097cf7422.tar.bz2
undelete ispy and put it in chrome/test/ispy
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262239 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ispy/server/views/main_view.html')
-rw-r--r--chrome/test/ispy/server/views/main_view.html78
1 files changed, 78 insertions, 0 deletions
diff --git a/chrome/test/ispy/server/views/main_view.html b/chrome/test/ispy/server/views/main_view.html
new file mode 100644
index 0000000..d722c6a
--- /dev/null
+++ b/chrome/test/ispy/server/views/main_view.html
@@ -0,0 +1,78 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>{{ test_run }} failures</title>
+ <style>
+ .image {
+ max-height: 325px;
+ max-width: 325px;
+ }
+ .cell {
+ padding-right: 25px;
+ padding-left: 25px;
+ float: left;
+ width: 20%;
+ }
+ .imagelink {
+ border-width: 0px;
+ }
+ .info {
+ padding-bottom: 25px;
+ }
+ .row {
+ padding-top: 10px;
+ padding-bottom: 10px;
+ border-bottom: 2px solid #888;
+ height: 350px;
+ }
+ </style>
+
+ <script language="javascript">
+ var confirmSubmit = function() {
+ return confirm("The screenshots generated with this version of chrome will be used as the expected images for future comparisions. Are you sure?");
+ }
+ </script>
+ </head>
+ <body>
+ <h3>Test Run: {{ test_run }}</h3>
+ {% if can_rebaseline %}
+ <form action="/rebaseline" method="post" onsubmit="return confirmSubmit();">
+ <input type="hidden" name="test_run" value="{{ test_run }}"/>
+ <input type="submit" value="Set as LKGR"/>
+ </form>
+ <br>
+ {% endif %}
+ {% if not comparisons %}
+ <h2>No failures.</h2>
+ {% endif %}
+ {% for comp in comparisons %}
+ <div class="row">
+ <div class="cell">
+ Diff&nbsp;&nbsp;({{ "%.1f"|format(comp['percent_different']) }}%)<br>
+ <a class="imagelink" href="{{ comp['diff'] }}">
+ <img class="image" src={{ comp['diff'] }}>
+ </a>
+ </div>
+ <div class="cell">
+ Expected<br>
+ <a class="imagelink" href="{{ comp['expected'] }}">
+ <img class="image" src={{ comp['expected'] }}>
+ </a>
+ </div>
+ <div class="cell">
+ Actual<br>
+ <a class="imagelink" href="{{ comp['actual'] }}">
+ <img class="image" src={{ comp['actual'] }}>
+ </a>
+ </div>
+ <div class="cell">
+ <br>
+ <div class="info">
+ {{ comp['expectation'] }}<br>
+ <a href='/debug_view?test_run={{ comp['test_run'] }}&expectation={{ comp['expectation'] }}'>Debug View</a>
+ </div>
+ </div>
+ </div>
+ {% endfor %}
+ </body>
+</html>