Changeset 204156 in webkit


Ignore:
Timestamp:
Aug 4, 2016, 5:46:05 PM (9 years ago)
Author:
commit-queue@webkit.org
Message:

UI improvements to Flakiness Dashboard.
https://bugs.webkit.org/show_bug.cgi?id=153295

Patch by Dean Johnson <dean_johnson@apple.com> on 2016-08-04
Reviewed by Alexey Proskuryakov.

  • TestResultServer/static-dashboards/flakiness_dashboard.css:

(td.options-container): Center text in most fields.

  • TestResultServer/static-dashboards/flakiness_dashboard.js:

(createBugHTML): Text/Grammar updates.
(tableHeaders): Ditto.
(htmlForSingleTestRow): Ditto.
(headerForTestTableHtml): Ditto.

  • TestResultServer/static-dashboards/ui.js: Removed the "Group: " and "Test type: " headings.

(ui.html.testTypeSwitcher): Deleted. Removes the "Group:" heading.

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r204155 r204156  
     12016-08-04  Dean Johnson  <dean_johnson@apple.com>
     2
     3        UI improvements to Flakiness Dashboard.
     4        https://bugs.webkit.org/show_bug.cgi?id=153295
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * TestResultServer/static-dashboards/flakiness_dashboard.css:
     9        (td.options-container): Center text in most fields.
     10        * TestResultServer/static-dashboards/flakiness_dashboard.js:
     11        (createBugHTML): Text/Grammar updates.
     12        (tableHeaders): Ditto.
     13        (htmlForSingleTestRow): Ditto.
     14        (headerForTestTableHtml): Ditto.
     15        * TestResultServer/static-dashboards/ui.js: Removed the "Group: " and "Test type: " headings.
     16        (ui.html.testTypeSwitcher): Deleted. Removes the "Group:" heading.
     17
    1182016-08-04  Carlos Alberto Lopez Perez  <clopez@igalia.com>
    219
  • trunk/Tools/TestResultServer/static-dashboards/flakiness_dashboard.css

    r123232 r204156  
    4848    white-space: nowrap;
    4949}
     50td.options-container {
     51    text-align: center;
     52}
    5053.forms {
    5154    display: -webkit-box;
  • trunk/Tools/TestResultServer/static-dashboards/flakiness_dashboard.js

    r202219 r204156  
    13291329    var component = encodeURIComponent('Tools / Tests');
    13301330    url = 'https://bugs.webkit.org/enter_bug.cgi?assigned_to=webkit-unassigned%40lists.webkit.org&product=WebKit&form_name=enter_bug&component=' + component + '&short_desc=' + title + '&comment=' + description;
    1331     return '<a href="' + url + '" class="file-bug">FILE BUG</a>';
     1331    return '<a href="' + url + '" class="file-bug">File</a>';
    13321332}
    13331333
     
    13411341    var headers = [];
    13421342    if (isCrossBuilderView() || opt_getAll)
    1343         headers.push('builder');
     1343        headers.push('Builder');
    13441344
    13451345    if (!isCrossBuilderView() || opt_getAll)
    1346         headers.push('test');
     1346        headers.push('Test');
    13471347
    13481348    if (g_history.isLayoutTestResults() || opt_getAll)
    1349         headers.push('bugs', 'modifiers', 'expectations');
    1350 
    1351     headers.push('slowest run', 'flakiness (numbers are runtimes in seconds)');
     1349        headers.push('Bug(s)', 'Modifiers', 'Expectation(s)');
     1350
     1351    headers.push('Slowest Run', 'Flakiness (Numbers are runtimes in seconds)');
    13521352    return headers;
    13531353}
     
    13671367    for (var i = 0; i < headers.length; i++) {
    13681368        var header = headers[i];
    1369         if (string.startsWith(header, 'test') || string.startsWith(header, 'builder')) {
     1369        if (string.startsWith(header, 'Test') || string.startsWith(header, 'Builder')) {
    13701370            // If isCrossBuilderView() is true, we're just viewing a single test
    13711371            // with results for many builders, so the first column is builder names
     
    13751375
    13761376            html += '<tr><td class="' + testCellClassName + '">' + testCellHTML;
    1377         } else if (string.startsWith(header, 'bugs'))
    1378             html += '<td class=options-container>' + (test.bugs ? htmlForBugs(test.bugs) : createBugHTML(test));
    1379         else if (string.startsWith(header, 'modifiers'))
     1377        } else if (string.startsWith(header, 'Bug(s)'))
     1378            html += '<td class=options-container bugs>' + (test.bugs ? htmlForBugs(test.bugs) : createBugHTML(test));
     1379        else if (string.startsWith(header, 'Modifiers'))
    13801380            html += '<td class=options-container>' + test.modifiers;
    1381         else if (string.startsWith(header, 'expectations'))
    1382             html += '<td class=options-container>' + test.expectations;
    1383         else if (string.startsWith(header, 'slowest'))
    1384             html += '<td>' + (test.slowestTime ? test.slowestTime + 's' : '');
    1385         else if (string.startsWith(header, 'flakiness'))
     1381        else if (string.startsWith(header, 'Expectation(s)'))
     1382            html += '<td class=options-container>' + test.expectations.split(' ').join(' | ');
     1383        else if (string.startsWith(header, 'Slowest'))
     1384            html += '<td class=options-container>' + (test.slowestTime ? test.slowestTime + 's' : '');
     1385        else if (string.startsWith(header, 'Flakiness'))
    13861386            html += htmlForTestResults(test);
    13871387    }
     
    21782178function headerForTestTableHtml()
    21792179{
    2180     return '<h2 style="display:inline-block">Failing tests</h2>' +
    2181         checkBoxToToggleState('showWontFixSkip', 'WONTFIX/SKIP') +
    2182         checkBoxToToggleState('showCorrectExpectations', 'tests with correct expectations') +
    2183         checkBoxToToggleState('showWrongExpectations', 'tests with wrong expectations') +
    2184         checkBoxToToggleState('showFlaky', 'flaky') +
    2185         checkBoxToToggleState('showSlow', 'slow');
     2180    return '<h2 style="display:inline-block">Show Tests Flagged As/With: </h2>' +
     2181        checkBoxToToggleState('showWontFixSkip', "Won't Fix/Skip") +
     2182        checkBoxToToggleState('showCorrectExpectations', 'Correct Expectations') +
     2183        checkBoxToToggleState('showWrongExpectations', 'Incorrect Expectations') +
     2184        checkBoxToToggleState('showFlaky', 'Flaky') +
     2185        checkBoxToToggleState('showSlow', 'Slow');
    21862186}
    21872187
  • trunk/Tools/TestResultServer/static-dashboards/ui.js

    r187975 r204156  
    111111        ui.html._dashboardLink('Treemap', 'treemap.html');
    112112
    113     html += ui.html.select('Test type', 'testType', TEST_TYPES);
    114 
    115113    if (!opt_noBuilderMenu) {
    116114        var buildersForMenu = Object.keys(currentBuilders());
     
    119117        html += ui.html.select('Builder', 'builder', buildersForMenu);
    120118    }
    121 
    122     html += ui.html.select('Group', 'group',
    123         Object.keys(currentBuilderGroupCategory()));
    124119
    125120    if (!history.isTreeMap())
Note: See TracChangeset for help on using the changeset viewer.