Home | History | Annotate | Download | only in rebaselineserver
      1 <!DOCTYPE html>
      2 <!--
      3   Copyright (c) 2010 Google Inc. All rights reserved.
      4 
      5   Redistribution and use in source and binary forms, with or without
      6   modification, are permitted provided that the following conditions are
      7   met:
      8 
      9      * Redistributions of source code must retain the above copyright
     10   notice, this list of conditions and the following disclaimer.
     11      * Redistributions in binary form must reproduce the above
     12   copyright notice, this list of conditions and the following disclaimer
     13   in the documentation and/or other materials provided with the
     14   distribution.
     15      * Neither the name of Google Inc. nor the names of its
     16   contributors may be used to endorse or promote products derived from
     17   this software without specific prior written permission.
     18 
     19   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     20   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     21   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     22   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     23   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     24   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     25   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     26   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     27   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     28   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     29   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     30 -->
     31 <html>
     32 <head>
     33   <title>Layout Test Rebaseline Server</title>
     34   <link rel="stylesheet" href="/main.css" type="text/css">
     35   <script src="/util.js"></script>
     36   <script src="/loupe.js"></script>
     37   <script src="/main.js"></script>
     38   <script src="/queue.js"></script>
     39 </head>
     40 <body class="loading">
     41 
     42 <pre id="log" style="display: none"></pre>
     43 <div id="queue" style="display: none">
     44   Queue:
     45   <select id="queue-select" size="10"></select>
     46   <button id="remove-queue-selection">Remove selection</button>
     47   <button id="rebaseline-queue">Rebaseline queue</button>
     48 </div>
     49 
     50 <div id="header">
     51   <div id="controls">
     52     <!-- Add a dummy <select> node so that this lines up with the text on the left -->
     53     <select style="visibility: hidden"></select>
     54     <span id="toggle-log" class="link">Log</span>
     55     <span class="divider">|</span>
     56     <a href="/quitquitquit">Exit</a>
     57   </div>
     58 
     59   <span id="selectors">
     60     <label>
     61       Failure type:
     62       <select id="failure-type-selector"></select>
     63     </label>
     64 
     65     <label>
     66       Directory:
     67       <select id="directory-selector"></select>
     68     </label>
     69 
     70     <label>
     71       Test:
     72       <select id="test-selector"></select>
     73     </label>
     74   </span>
     75 
     76   <a id="test-link" target="_blank">View test</a>
     77 
     78   <span id="nav-buttons">
     79     <button id="previous-test">&laquo;</button>
     80     <span id="test-index"></span> of <span id="test-count"></span>
     81     <button id="next-test">&raquo;</button>
     82   </span>
     83 </div>
     84 
     85 <table id="test-output">
     86   <thead id="labels">
     87     <tr>
     88       <th>Expected</th>
     89       <th>Actual</th>
     90       <th>Diff</th>
     91     </tr>
     92   </thead>
     93   <tbody id="image-outputs" style="display: none">
     94     <tr>
     95       <td colspan="3"><h2>Image</h2></td>
     96     </tr>
     97     <tr>
     98       <td><img id="expected-image"></td>
     99       <td><img id="actual-image"></td>
    100       <td>
    101         <canvas id="diff-canvas" width="800" height="600"></canvas>
    102         <div id="diff-checksum" style="display: none">
    103           <h3>Checksum mismatch</h3>
    104           Expected: <span id="expected-checksum"></span><br>
    105           Actual: <span id="actual-checksum"></span>
    106         </div>
    107       </td>
    108     </tr>
    109   </tbody>
    110   <tbody id="text-outputs" style="display: none">
    111     <tr>
    112       <td colspan="3"><h2>Text</h2></td>
    113     </tr>
    114     <tr>
    115       <td><pre id="expected-text" class="text-output"></pre></td>
    116       <td><pre id="actual-text" class="text-output"></pre></td>
    117       <td><div id="diff-text-pretty" class="text-output"></div></td>
    118     </tr>
    119   </tbody>
    120 </table>
    121 
    122 <div id="footer">
    123   <label>State: <span id="state"></span></label>
    124   <label>Existing baselines: <span id="current-baselines"></span></label>
    125   <label>
    126     Baseline target:
    127     <select id="baseline-target"></select>
    128   </label>
    129   <label>
    130     Move current baselines to:
    131     <select id="baseline-move-to">
    132       <option value="none">Nowhere (replace)</option>
    133     </select>
    134   </label>
    135 
    136   <!-- Add a dummy <button> node so that this lines up with the text on the right -->
    137   <button style="visibility: hidden; padding-left: 0; padding-right: 0;"></button>
    138 
    139   <div id="action-buttons">
    140     <span id="toggle-queue" class="link">Queue</span>
    141     <button id="add-to-rebaseline-queue">Add to rebaseline queue</button>
    142   </div>
    143 </div>
    144 
    145 <table id="loupe" style="display: none">
    146   <tr>
    147     <td colspan="3" id="loupe-info">
    148       <span id="loupe-close" class="link">Close</span>
    149       <label>Coordinate: <span id="loupe-coordinate"></span></label>
    150     </td>
    151   </tr>
    152   <tr>
    153     <td>
    154       <div class="loupe-container">
    155         <canvas id="expected-loupe" width="210" height="210"></canvas>
    156         <div class="center-highlight"></div>
    157       </div>
    158     </td>
    159     <td>
    160       <div class="loupe-container">
    161         <canvas id="actual-loupe" width="210" height="210"></canvas>
    162         <div class="center-highlight"></div>
    163       </div>
    164     </td>
    165     <td>
    166       <div class="loupe-container">
    167         <canvas id="diff-loupe" width="210" height="210"></canvas>
    168         <div class="center-highlight"></div>
    169       </div>
    170     </td>
    171   </tr>
    172   <tr id="loupe-colors">
    173     <td><label>Exp. color: <span id="expected-loupe-color"></span></label></td>
    174     <td><label>Actual color: <span id="actual-loupe-color"></span></label></td>
    175     <td><label>Diff color: <span id="diff-loupe-color"></span></label></td>
    176   </tr>
    177 </table>
    178 
    179 </body>
    180 </html>
    181