Changeset 195579 in webkit


Ignore:
Timestamp:
Jan 25, 2016 9:40:28 PM (8 years ago)
Author:
Simon Fraser
Message:

Give the layout test results file a <title> showing the date and time the tests were run
https://bugs.webkit.org/show_bug.cgi?id=153187

Reviewed by Darin Adler.

Tools:

Include a 'date' property in the JSON with the date and time the tests completed.

  • Scripts/webkitpy/layout_tests/models/test_run_results.py:

(summarize_results):

LayoutTests:

Generate a <title> element from the 'date' property in the JSON.

  • fast/harness/results.html:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r195573 r195579  
     12016-01-25  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Give the layout test results file a <title> showing the date and time the tests were run
     4        https://bugs.webkit.org/show_bug.cgi?id=153187
     5
     6        Reviewed by Darin Adler.
     7       
     8        Generate a <title> element from the 'date' property in the JSON.
     9
     10        * fast/harness/results.html:
     11
    1122016-01-25  Carlos Alberto Lopez Perez  <clopez@igalia.com>
    213
  • trunk/LayoutTests/fast/harness/results.html

    r191524 r195579  
    13861386}
    13871387
     1388function updateTitle()
     1389{
     1390    var dateString = globalState().results.date;
     1391   
     1392    var title = document.createElement('title');
     1393    title.textContent = 'Layout Test Results from ' + dateString;
     1394    document.head.appendChild(title);
     1395}
    13881396
    13891397function generatePage()
    13901398{
     1399    updateTitle();
    13911400    forEachTest(processGlobalStateFor);
    13921401    forOtherCrashes();
  • trunk/Tools/ChangeLog

    r195558 r195579  
     12016-01-25  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Give the layout test results file a <title> showing the date and time the tests were run
     4        https://bugs.webkit.org/show_bug.cgi?id=153187
     5
     6        Reviewed by Darin Adler.
     7       
     8        Include a 'date' property in the JSON with the date and time the tests completed.
     9
     10        * Scripts/webkitpy/layout_tests/models/test_run_results.py:
     11        (summarize_results):
     12
    1132016-01-25  Commit Queue  <commit-queue@webkit.org>
    214
  • trunk/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py

    r194768 r195579  
    2828# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2929
     30import datetime
    3031import logging
    3132import signal
     
    134135        'num_passes': The number of unexpected passes
    135136        'tests': a dict of tests -> {'expected': '...', 'actual': '...'}
     137        'date': the current date and time
    136138    """
    137139    results = {}
     
    265267    results['pixel_tests_enabled'] = port_obj.get_option('pixel_tests')
    266268    results['other_crashes'] = other_crashes_dict
     269    results['date'] = datetime.datetime.now().strftime("%I:%M%p on %B %d, %Y")
    267270
    268271    try:
Note: See TracChangeset for help on using the changeset viewer.