Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (C) 2012 Google Inc. All rights reserved. | 1 // Copyright (C) 2012 Google Inc. All rights reserved. |
| 2 // | 2 // |
| 3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
| 4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
| 5 // met: | 5 // met: |
| 6 // | 6 // |
| 7 // * Redistributions of source code must retain the above copyright | 7 // * 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 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
| 10 // copyright notice, this list of conditions and the following disclaimer | 10 // copyright notice, this list of conditions and the following disclaimer |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 22 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 23 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 23 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 24 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 25 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | 28 |
| 29 function LOAD_BUILDBOT_DATA(builderData) | 29 function LOAD_BUILDBOT_DATA(builderData) |
| 30 { | 30 { |
| 31 builders.masters = {}; | 31 builders.masters = {}; |
| 32 builders.urlNameToMasterName = {}; | |
| 32 var groups = {}; | 33 var groups = {}; |
| 33 var testTypes = {}; | 34 var testTypes = {}; |
| 34 var testTypesThatDoNotUpload = {}; | 35 var testTypesThatDoNotUpload = {}; |
| 35 builders.noUploadTestTypes = builderData['no_upload_test_types'] | 36 builders.noUploadTestTypes = builderData['no_upload_test_types'] |
| 36 builderData['masters'].forEach(function(master) { | 37 builderData['masters'].forEach(function(master) { |
| 38 builders.urlNameToMasterName[master.url_name] = master.name | |
|
pdr.
2014/07/21 06:17:34
Add a semicolon please.
ojan
2014/07/21 06:29:14
Oh noes! Embarrassing...
| |
| 37 builders.masters[master.name] = new builders.BuilderMaster(master); | 39 builders.masters[master.name] = new builders.BuilderMaster(master); |
| 38 | 40 |
| 39 master.groups.forEach(function(group) { groups[group] = true; }); | 41 master.groups.forEach(function(group) { groups[group] = true; }); |
| 40 | 42 |
| 41 Object.keys(master.tests).forEach(function(testType) { | 43 Object.keys(master.tests).forEach(function(testType) { |
| 42 if (builders.testTypeUploadsToFlakinessDashboardServer(testType)) | 44 if (builders.testTypeUploadsToFlakinessDashboardServer(testType)) |
| 43 testTypes[testType] = true; | 45 testTypes[testType] = true; |
| 44 else | 46 else |
| 45 testTypesThatDoNotUpload[testType] = true; | 47 testTypesThatDoNotUpload[testType] = true; |
| 46 }); | 48 }); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 220 if (prev.indexOf(curr) == -1) { | 222 if (prev.indexOf(curr) == -1) { |
| 221 prev.push(curr); | 223 prev.push(curr); |
| 222 } | 224 } |
| 223 return prev; | 225 return prev; |
| 224 }, []); | 226 }, []); |
| 225 | 227 |
| 226 return groupNames; | 228 return groupNames; |
| 227 } | 229 } |
| 228 | 230 |
| 229 })(); | 231 })(); |
| OLD | NEW |