| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 for (var i = 0; i < failureInfoList.length; i++) { | 75 for (var i = 0; i < failureInfoList.length; i++) { |
| 76 var failureInfo = failureInfoList[i]; | 76 var failureInfo = failureInfoList[i]; |
| 77 if (failureInfo.builderName.indexOf('dbg') != -1) { | 77 if (failureInfo.builderName.indexOf('dbg') != -1) { |
| 78 debugBotsCallback(failureInfo); | 78 debugBotsCallback(failureInfo); |
| 79 continue; | 79 continue; |
| 80 } | 80 } |
| 81 tests[failureInfo.testName] = tests[failureInfo.testName] || {}; | 81 tests[failureInfo.testName] = tests[failureInfo.testName] || {}; |
| 82 tests[failureInfo.testName][failureInfo.builderName] = | 82 tests[failureInfo.testName][failureInfo.builderName] = |
| 83 base.uniquifyArray(base.flattenArray(failureInfo.failureTypeList
.map(results.failureTypeToExtensionList))); | 83 base.uniquifyArray(base.flattenArray(failureInfo.failureTypeList
.map(results.failureTypeToExtensionList))); |
| 84 } | 84 } |
| 85 return net.post('/rebaselineall', JSON.stringify(tests)); | 85 net.post('/rebaselineall', JSON.stringify(tests)).then(progressCallback,
progressCallback); |
| 86 }); | 86 }); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 })(); | 89 })(); |
| OLD | NEW |