Changeset 83908 in webkit


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

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

Reviewed by Eric Seidel.

only show expected failure type for ports that use an expectations file
https://bugs.webkit.org/show_bug.cgi?id=58588

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

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r83906 r83908  
     12011-04-14  Ojan Vafai  <ojan@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        only show expected failure type for ports that use an expectations file
     6        https://bugs.webkit.org/show_bug.cgi?id=58588
     7
     8        * Scripts/webkitpy/layout_tests/layout_package/json_results.html:
     9        * Scripts/webkitpy/layout_tests/layout_package/test_runner.py:
     10
    1112011-04-14  Eric Seidel  <eric@webkit.org>
    212
  • trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/json_results.html

    r83902 r83908  
    5151        '<th id="text-results-header">text results</th>' +
    5252        '<th id="image-results-header">image results</th>' +
    53         '<th>failure type</th>' +
    54         '<th>expected failure type</th>' +
    55     '</tr></thead>';
     53        '<th>failure type</th>';
     54       
     55if (results.uses_expectations_file)
     56    html += '<th>expected failure type</th>';
     57
     58html += '</tr></thead>';
    5659
    5760// FIXME: Should this point to the local file instead? Should it dynamically figure out where to point?
     
    6669// FIXME: allow zooming in on pixel diffs
    6770// FIXME: store stderr information in the json
    68 // FIXME: don't show expected failure type for non-chromium ports
    6971
    7072var hasTextFailures = false;
     
    103105  // FIXME: Handle stderr output.
    104106  row += '<td>' + actual + '</td>';
    105   row += '<td>' + results.tests[test].expected + '</td>';
     107 
     108  if (results.uses_expectations_file)
     109    row += '<td>' + results.tests[test].expected + '</td>';
     110
    106111  html += '<tr>' + row + '</tr>';
    107112}
  • trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/test_runner.py

    r83806 r83908  
    155155    results['num_flaky'] = num_flaky
    156156    results['num_regressions'] = num_regressions
     157    # FIXME: If non-chromium ports start using an expectations file,
     158    # we should make this check more robust.
     159    results['uses_expectations_file'] = port_obj.name().find('chromium') != -1
    157160
    158161    return results
Note: See TracChangeset for help on using the changeset viewer.