Changeset 84514 in webkit


Ignore:
Timestamp:
Apr 21, 2011 10:16:33 AM (13 years ago)
Author:
ojan@chromium.org
Message:

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

Reviewed by Tony Chang.

initial set of tests for new results.html file
https://bugs.webkit.org/show_bug.cgi?id=59031

Also, fix the bugs (mostly innocuous JS errors) the tests found.

  • Scripts/webkitpy/layout_tests/layout_package/json_results.html:
  • Scripts/webkitpy/layout_tests/layout_package/json_results_test.js: Added.
Location:
trunk/Tools
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r84508 r84514  
     12011-04-20  Ojan Vafai  <ojan@chromium.org>
     2
     3        Reviewed by Tony Chang.
     4
     5        initial set of tests for new results.html file
     6        https://bugs.webkit.org/show_bug.cgi?id=59031
     7
     8        Also, fix the bugs (mostly innocuous JS errors) the tests found.
     9
     10        * Scripts/webkitpy/layout_tests/layout_package/json_results.html:
     11        * Scripts/webkitpy/layout_tests/layout_package/json_results_test.js: Added.
     12
    1132011-04-21  Philippe Normand  <pnormand@igalia.com>
    214
  • trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/json_results.html

    r84420 r84514  
    575575    document.body.innerHTML = html;
    576576
    577     if (document.getElementById('results-table'))
     577    if (document.getElementById('results-table')) {
    578578        document.getElementById('results-table').addEventListener('click', TableSorter.handleClick, false);
    579     TableSorter.sortColumn(0);
     579        TableSorter.sortColumn(0);
     580        if (!globalState().hasTextFailures)
     581            document.getElementById('text-results-header').textContent = '';
     582        if (!globalState().hasImageFailures)
     583            document.getElementById('image-results-header').textContent = '';
     584    }
    580585   
    581586    updateExpectedResults();
    582 
    583     if (!globalState().hasTextFailures)
    584       document.body.getElementById('text-results-header').textContent = '';
    585     if (!globalState().hasImageFailures)
    586       document.body.getElementById('image-results-header').textContent = '';
    587587}
    588588</script>
     589<!-- HACK: when json_results_test.js is included, loading this page runs the tests.
     590It is not copied to the layout-test-results output directory. -->
     591<script src="json_results_test.js"></script>
    589592<body onload="generatePage()"></body>
Note: See TracChangeset for help on using the changeset viewer.