Changeset 146926 in webkit
- Timestamp:
- Mar 26, 2013, 1:40:26 PM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r146921 r146926 1 2013-03-26 Julie Parent <jparent@chromium.org> 2 3 Flakiness dashboard: simplify logic around which tests to show. 4 https://bugs.webkit.org/show_bug.cgi?id=113250 5 6 Reviewed by Ojan Vafai. 7 8 The different filters for showing results are only used for layout 9 tests, otherwise, we show everything. 10 11 Change the defaults to false (what layout tests used), and only 12 look at the values when viewing layout tests. 13 14 * TestResultServer/static-dashboards/flakiness_dashboard.js: 15 (htmlForTestsWithExpectationsButNoFailures): 16 (shouldHideTest): 17 1 18 2013-03-26 Isaac Levy <ilevy@google.com> 2 19 -
trunk/Tools/TestResultServer/static-dashboards/flakiness_dashboard.js
r146797 r146926 251 251 legacyExpectationsSemantics: true, 252 252 showChrome: true, 253 showCorrectExpectations: !g_history.isLayoutTestResults(),254 showWrongExpectations: !g_history.isLayoutTestResults(),255 showWontFixSkip: !g_history.isLayoutTestResults(),256 showSlow: !g_history.isLayoutTestResults(),257 showSkipped: !g_history.isLayoutTestResults(),258 showUnexpectedPasses: !g_history.isLayoutTestResults(),253 showCorrectExpectations: false, 254 showWrongExpectations: false, 255 showWontFixSkip: false, 256 showSlow: false, 257 showSkipped: false, 258 showUnexpectedPasses: false, 259 259 expectationsUpdate: false, 260 260 updateIndex: 0, … … 1315 1315 var showSkippedLink = linkHTMLToToggleState('showSkipped', 'skipped tests in TestExpectations'); 1316 1316 1317 1318 1317 var html = ''; 1319 if ( tests.length || skippedPaths.length) {1318 if (g_history.isLayoutTestResults() && (tests.length || skippedPaths.length)) { 1320 1319 var buildInfo = platformAndBuildType(builder); 1321 1320 html += '<h2 style="display:inline-block">Expectations for ' + buildInfo.platform + '-' + buildInfo.buildType + '</h2> '; … … 1344 1343 function shouldHideTest(testResult) 1345 1344 { 1345 // For non-layout tests, we always show everything. 1346 if (!g_history.isLayoutTestResults()) 1347 return false; 1348 1346 1349 if (testResult.isWontFixSkip) 1347 1350 return !g_history.dashboardSpecificState.showWontFixSkip; -
trunk/Tools/TestResultServer/static-dashboards/flakiness_dashboard_unittests.js
r146797 r146926 700 700 notEqual(historyInstance.crossDashboardState.group, originalGroup, "group should have been invalidated"); 701 701 }); 702 703 test('shouldHideTest', 10, function() { 704 var historyInstance = new history.History(); 705 historyInstance.parseParameters(); 706 // FIXME(jparent): Change to use the flakiness_dashboard's history object 707 // once it exists, rather than tracking global. 708 g_history = historyInstance; 709 var test = createResultsObjectForTest('foo/test.html', 'dummyBuilder'); 710 711 equal(shouldHideTest(test), true, 'default layout test, hide it.'); 712 historyInstance.dashboardSpecificState.showCorrectExpectations = true; 713 equal(shouldHideTest(test), false, 'show correct expectations.'); 714 historyInstance.dashboardSpecificState.showCorrectExpectations = false; 715 716 test = createResultsObjectForTest('foo/test.html', 'dummyBuilder'); 717 test.isWontFixSkip = true; 718 equal(shouldHideTest(test), true, 'by default hide these too'); 719 historyInstance.dashboardSpecificState.showWontFixSkip = true; 720 equal(shouldHideTest(test), false, 'now we should show it'); 721 historyInstance.dashboardSpecificState.showWontFixSkip = false; 722 723 test = createResultsObjectForTest('foo/test.html', 'dummyBuilder'); 724 test.isFlaky = true; 725 equal(shouldHideTest(test), false, 'we show flaky tests by default'); 726 historyInstance.dashboardSpecificState.showFlaky = false; 727 equal(shouldHideTest(test), true, 'do not show flaky test'); 728 historyInstance.dashboardSpecificState.showFlaky = true; 729 730 test = createResultsObjectForTest('foo/test.html', 'dummyBuilder'); 731 test.slowestNonTimeoutCrashTime = MIN_SECONDS_FOR_SLOW_TEST + 1; 732 equal(shouldHideTest(test), true, 'we hide slow tests by default'); 733 historyInstance.dashboardSpecificState.showSlow = true; 734 equal(shouldHideTest(test), false, 'now show slow test'); 735 historyInstance.dashboardSpecificState.showSlow = false; 736 737 test = createResultsObjectForTest('foo/test.html', 'dummyBuilder'); 738 historyInstance.crossDashboardState.testType = 'not layout tests'; 739 equal(shouldHideTest(test), false, 'show all non layout tests'); 740 test.isWontFixSkip = true; 741 equal(shouldHideTest(test), false, 'show all non layout tests, even if wont fix'); 742 });
Note:
See TracChangeset
for help on using the changeset viewer.