| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 182 |
| 183 results.directoryForBuilder = function(builderName) | 183 results.directoryForBuilder = function(builderName) |
| 184 { | 184 { |
| 185 return config.kPlatforms[config.currentPlatform].resultsDirectoryNameFromBui
lderName(builderName); | 185 return config.kPlatforms[config.currentPlatform].resultsDirectoryNameFromBui
lderName(builderName); |
| 186 } | 186 } |
| 187 | 187 |
| 188 function resultsDirectoryURL(platform, builderName) | 188 function resultsDirectoryURL(platform, builderName) |
| 189 { | 189 { |
| 190 if (config.useLocalResults) | 190 if (config.useLocalResults) |
| 191 return '/localresult?path='; | 191 return '/localresult?path='; |
| 192 // FIXME: The duplicate "layout-test-results" is due to crbug.com/285572. | 192 return resultsDirectoryListingURL(platform, builderName) + 'results/layout-t
est-results/'; |
| 193 return resultsDirectoryListingURL(platform, builderName) + 'results/layout-t
est-results/layout-test-results/'; | |
| 194 } | 193 } |
| 195 | 194 |
| 196 function resultsDirectoryListingURL(platform, builderName) | 195 function resultsDirectoryListingURL(platform, builderName) |
| 197 { | 196 { |
| 198 return layoutTestResultsURL(platform) + '/' + results.directoryForBuilder(bu
ilderName) + '/'; | 197 return layoutTestResultsURL(platform) + '/' + results.directoryForBuilder(bu
ilderName) + '/'; |
| 199 } | 198 } |
| 200 | 199 |
| 201 function resultsDirectoryURLForBuildNumber(platform, builderName, buildNumber) | 200 function resultsDirectoryURLForBuildNumber(platform, builderName, buildNumber) |
| 202 { | 201 { |
| 203 return resultsDirectoryListingURL(platform, builderName) + buildNumber + '/'
; | 202 return resultsDirectoryListingURL(platform, builderName) + buildNumber + '/'
; |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 $.each(builderNameList, function(index, builderName) { | 541 $.each(builderNameList, function(index, builderName) { |
| 543 var resultsURL = resultsSummaryURL(config.currentPlatform, builderName); | 542 var resultsURL = resultsSummaryURL(config.currentPlatform, builderName); |
| 544 net.jsonp(resultsURL, function(resultsTree) { | 543 net.jsonp(resultsURL, function(resultsTree) { |
| 545 resultsByBuilder[builderName] = resultsTree; | 544 resultsByBuilder[builderName] = resultsTree; |
| 546 tracker.requestComplete(); | 545 tracker.requestComplete(); |
| 547 }); | 546 }); |
| 548 }); | 547 }); |
| 549 }; | 548 }; |
| 550 | 549 |
| 551 })(); | 550 })(); |
| OLD | NEW |