Changeset 204156 in webkit
- Timestamp:
- Aug 4, 2016, 5:46:05 PM (9 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r204155 r204156 1 2016-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 1 18 2016-08-04 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 19 -
trunk/Tools/TestResultServer/static-dashboards/flakiness_dashboard.css
r123232 r204156 48 48 white-space: nowrap; 49 49 } 50 td.options-container { 51 text-align: center; 52 } 50 53 .forms { 51 54 display: -webkit-box; -
trunk/Tools/TestResultServer/static-dashboards/flakiness_dashboard.js
r202219 r204156 1329 1329 var component = encodeURIComponent('Tools / Tests'); 1330 1330 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">F ILE BUG</a>';1331 return '<a href="' + url + '" class="file-bug">File</a>'; 1332 1332 } 1333 1333 … … 1341 1341 var headers = []; 1342 1342 if (isCrossBuilderView() || opt_getAll) 1343 headers.push(' builder');1343 headers.push('Builder'); 1344 1344 1345 1345 if (!isCrossBuilderView() || opt_getAll) 1346 headers.push(' test');1346 headers.push('Test'); 1347 1347 1348 1348 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)'); 1352 1352 return headers; 1353 1353 } … … 1367 1367 for (var i = 0; i < headers.length; i++) { 1368 1368 var header = headers[i]; 1369 if (string.startsWith(header, ' test') || string.startsWith(header, 'builder')) {1369 if (string.startsWith(header, 'Test') || string.startsWith(header, 'Builder')) { 1370 1370 // If isCrossBuilderView() is true, we're just viewing a single test 1371 1371 // with results for many builders, so the first column is builder names … … 1375 1375 1376 1376 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')) 1380 1380 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')) 1386 1386 html += htmlForTestResults(test); 1387 1387 } … … 2178 2178 function headerForTestTableHtml() 2179 2179 { 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'); 2186 2186 } 2187 2187 -
trunk/Tools/TestResultServer/static-dashboards/ui.js
r187975 r204156 111 111 ui.html._dashboardLink('Treemap', 'treemap.html'); 112 112 113 html += ui.html.select('Test type', 'testType', TEST_TYPES);114 115 113 if (!opt_noBuilderMenu) { 116 114 var buildersForMenu = Object.keys(currentBuilders()); … … 119 117 html += ui.html.select('Builder', 'builder', buildersForMenu); 120 118 } 121 122 html += ui.html.select('Group', 'group',123 Object.keys(currentBuilderGroupCategory()));124 119 125 120 if (!history.isTreeMap())
Note:
See TracChangeset
for help on using the changeset viewer.