Changeset 84054 in webkit


Ignore:
Timestamp:
Apr 15, 2011 4:59:57 PM (13 years ago)
Author:
ojan@chromium.org
Message:

2011-04-15 Ojan Vafai <ojan@chromium.org>

Reviewed by Eric Seidel.

only show pretty-diff/wdiff if they were generated
https://bugs.webkit.org/show_bug.cgi?id=58682

  • Scripts/webkitpy/layout_tests/layout_package/json_results.html:
  • Scripts/webkitpy/layout_tests/layout_package/test_runner.py:
  • Scripts/webkitpy/layout_tests/port/base.py:
Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r84013 r84054  
     12011-04-15  Ojan Vafai  <ojan@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        only show pretty-diff/wdiff if they were generated
     6        https://bugs.webkit.org/show_bug.cgi?id=58682
     7
     8        * Scripts/webkitpy/layout_tests/layout_package/json_results.html:
     9        * Scripts/webkitpy/layout_tests/layout_package/test_runner.py:
     10        * Scripts/webkitpy/layout_tests/port/base.py:
     11
    1122011-04-15  Andreas Kling  <kling@webkit.org>
    213
  • trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/json_results.html

    r83980 r84054  
    7878// FIXME: allow zooming in on pixel diffs
    7979// FIXME: store stderr information in the json
     80// FIXME: add links to the httpd access/error logs
     81// FIXME: handle new tests
    8082
    8183var hasTextFailures = false;
     
    9496
    9597  row += '<td>';
    96   // FIXME: only include timeout actual/expected results here if we actually spit out results for timeout tests.
    9798  if (actual == 'CRASH')
    98       row += resultLink(test, '-stack.txt', 'stack');
     99      row += resultLink(test_prefix, '-stack.txt', 'stack');
    99100  else if (actual.indexOf('TEXT' || actual == 'TIMEOUT') != -1) {
     101      // FIXME: only include timeout actual/expected results here if we actually spit out results for timeout tests.
    100102      hasTextFailures = true;
    101       // FIXME: Show wdiff here too?
    102       // FIXME: store a bit in the JSON as to whether pretty-diff/wdiffs were generated
    103       row += resultLink(test, '-expected.txt', 'expected') +
    104           resultLink(test, '-actual.txt', 'actual') +
    105           resultLink(test, '-diff.txt', 'diff') +
    106           resultLink(test, '-pretty-diff.html', 'pretty diff');
     103      row += resultLink(test_prefix, '-expected.txt', 'expected') +
     104          resultLink(test_prefix, '-actual.txt', 'actual') +
     105          resultLink(test_prefix, '-diff.txt', 'diff');
     106       
     107      if (results.has_pretty_patch)
     108          row += resultLink(test_prefix, '-pretty-diff.html', 'pretty diff');
     109
     110      if (results.has_wdiff)
     111          row += resultLink(test_prefix, '-wdiff.html', 'wdiff');
    107112  }
    108113
     
    111116  if (actual.indexOf('IMAGE') != -1) {
    112117      hasImageFailures = true;
    113       row += resultLink(test, '-expected.png', 'expected') +
    114           resultLink(test, '-actual.png', 'actual') +
    115           resultLink(test, '-diff.png', 'diff');
     118      row += resultLink(test_prefix, '-expected.png', 'expected') +
     119          resultLink(test_prefix, '-actual.png', 'actual') +
     120          resultLink(test_prefix, '-diff.png', 'diff');
    116121  }
    117122
  • trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/test_runner.py

    r83980 r84054  
    159159    results['uses_expectations_file'] = port_obj.name().find('chromium') != -1
    160160    results['layout_tests_dir'] = port_obj.layout_tests_dir()
     161    results['has_wdiff'] = port_obj.wdiff_available()
     162    results['has_pretty_patch'] = port_obj.pretty_patch_available()
    161163
    162164    return results
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py

    r83783 r84054  
    141141        self._results_directory = None
    142142
     143    def wdiff_available(self):
     144        return bool(self._wdiff_available)
     145
     146    def pretty_patch_available(self):
     147        return bool(self._pretty_patch_available)
     148
    143149    def default_child_processes(self):
    144150        """Return the number of DumpRenderTree instances to use for this
Note: See TracChangeset for help on using the changeset viewer.