Changeset 73320 in webkit


Ignore:
Timestamp:
Dec 3, 2010 5:46:22 PM (13 years ago)
Author:
mihaip@chromium.org
Message:

2010-12-03 Mihai Parparita <mihaip@chromium.org>

Reviewed by Tony Chang.

Rebaseline server: use pretty text diff output
https://bugs.webkit.org/show_bug.cgi?id=50484

Serve *-pretty-diff.html for text diff output.

  • Scripts/webkitpy/tool/commands/data/rebaselineserver/index.html:
  • Scripts/webkitpy/tool/commands/data/rebaselineserver/main.css:
  • Scripts/webkitpy/tool/commands/data/rebaselineserver/main.js:
  • Scripts/webkitpy/tool/commands/rebaselineserver.py:
Location:
trunk/WebKitTools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r73317 r73320  
     12010-12-03  Mihai Parparita  <mihaip@chromium.org>
     2
     3        Reviewed by Tony Chang.
     4
     5        Rebaseline server: use pretty text diff output
     6        https://bugs.webkit.org/show_bug.cgi?id=50484
     7       
     8        Serve *-pretty-diff.html for text diff output.
     9
     10        * Scripts/webkitpy/tool/commands/data/rebaselineserver/index.html:
     11        * Scripts/webkitpy/tool/commands/data/rebaselineserver/main.css:
     12        * Scripts/webkitpy/tool/commands/data/rebaselineserver/main.js:
     13        * Scripts/webkitpy/tool/commands/rebaselineserver.py:
     14
    1152010-12-03  Sheriff Bot  <webkit.review.bot@gmail.com>
    216
  • trunk/WebKitTools/Scripts/webkitpy/tool/commands/data/rebaselineserver/index.html

    r72640 r73320  
    113113    </tr>
    114114    <tr>
    115       <td><pre id="expected-text"></pre></td>
    116       <td><pre id="actual-text"></pre></td>
    117       <td><pre id="diff-text"><pre></td>
     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>
    118118    </tr>
    119119  </tbody>
  • trunk/WebKitTools/Scripts/webkitpy/tool/commands/data/rebaselineserver/main.css

    r72939 r73320  
    181181}
    182182
    183 #text-outputs pre {
     183#text-outputs .text-output {
    184184  height: 600px;
    185185  width: 800px;
  • trunk/WebKitTools/Scripts/webkitpy/tool/commands/data/rebaselineserver/main.js

    r73298 r73320  
    487487}
    488488
    489 function loadTextResult(testName, mode)
     489function loadTextResult(testName, mode, responseIsHtml)
    490490{
    491491    loadText(getTestResultUrl(testName, mode), function(text) {
    492         $(mode).textContent = text;
     492        if (responseIsHtml) {
     493            $(mode).innerHTML = text;
     494        } else {
     495            $(mode).textContent = text;
     496        }
    493497    });
    494498}
     
    498502    loadTextResult(testName, 'expected-text');
    499503    loadTextResult(testName, 'actual-text');
    500     loadTextResult(testName, 'diff-text');
     504    loadTextResult(testName, 'diff-text-pretty', true);
    501505}
    502506
  • trunk/WebKitTools/Scripts/webkitpy/tool/commands/rebaselineserver.py

    r73298 r73320  
    174174        elif mode == 'diff-text':
    175175            file_name = test_name + '-diff.txt'
     176        elif mode == 'diff-text-pretty':
     177            file_name = test_name + '-pretty-diff.html'
    176178
    177179        file_path = os.path.join(self.server.test_config.results_directory, file_name)
Note: See TracChangeset for help on using the changeset viewer.