Changeset 140083 in webkit
- Timestamp:
- Jan 17, 2013 6:16:48 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r140070 r140083 1 2013-01-17 Julie Parent <jparent@chromium.org> 2 3 Flakiness dashboard assumes there must be ToT tests 4 https://bugs.webkit.org/show_bug.cgi?id=107155 5 6 Remove group as a default parameter, since we can't actually know 7 the name of a group initially. Instead, introduces 8 currentBuilderGroupName which returns the current builder group 9 if it has been explicitly set, or picks the first one available 10 as a default. Allows us to remove some extra code tracking this 11 stuff as well. 12 13 Reviewed by Ojan Vafai. 14 15 * TestResultServer/static-dashboards/dashboard_base.js: 16 (parseCrossDashboardParameters): 17 (currentBuilderGroupName): 18 (currentBuilderGroup): 19 * TestResultServer/static-dashboards/flakiness_dashboard.js: 20 (platformAndBuildType): 21 * TestResultServer/static-dashboards/loader.js: 22 (.): 23 1 24 2013-01-16 Ryosuke Niwa <rniwa@webkit.org> 2 25 -
trunk/Tools/TestResultServer/static-dashboards/dashboard_base.js
r139522 r140083 197 197 198 198 var g_defaultCrossDashboardStateValues = { 199 group: '@ToT - chromium.org',200 199 showAllRuns: false, 201 200 testType: 'layout-tests', … … 298 297 299 298 fillMissingValues(g_crossDashboardState, g_defaultCrossDashboardStateValues); 300 if (currentBuilderGroup() === undefined)301 g_crossDashboardState.group = g_defaultCrossDashboardStateValues.group;302 299 } 303 300 … … 413 410 } 414 411 412 function currentBuilderGroupName() 413 { 414 return g_crossDashboardState.group || Object.keys(currentBuilderGroupCategory())[0]; 415 } 416 415 417 function currentBuilderGroup() 416 418 { 417 return currentBuilderGroupCategory()[ g_crossDashboardState.group]419 return currentBuilderGroupCategory()[currentBuilderGroupName()]; 418 420 } 419 421 -
trunk/Tools/TestResultServer/static-dashboards/flakiness_dashboard.js
r138762 r140083 386 386 387 387 var platform = ''; 388 if (isLayoutTestResults() && g_crossDashboardState.group== '@ToT - webkit.org' && !stringContains(builderNameUpperCase, 'CHROMIUM'))388 if (isLayoutTestResults() && currentBuilderGroupName() == '@ToT - webkit.org' && !stringContains(builderNameUpperCase, 'CHROMIUM')) 389 389 platform = nonChromiumPlatform(builderNameUpperCase); 390 390 else -
trunk/Tools/TestResultServer/static-dashboards/loader.js
r139471 r140083 95 95 _loadBuildersList: function() 96 96 { 97 loadBuildersList( g_crossDashboardState.group, g_crossDashboardState.testType);97 loadBuildersList(currentBuilderGroupName(), g_crossDashboardState.testType); 98 98 this._loadNext(); 99 99 },
Note: See TracChangeset
for help on using the changeset viewer.