Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: Tools/TestResultServer/static-dashboards/aggregate_results_unittest.js

Issue 337433003: Switch buildershandler over to using the json mirror. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (C) 2013 Google Inc. All rights reserved. 1 // Copyright (C) 2013 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 25 matching lines...) Expand all
36 for (var key in history.DEFAULT_CROSS_DASHBOARD_STATE_VALUES) 36 for (var key in history.DEFAULT_CROSS_DASHBOARD_STATE_VALUES)
37 historyInstance.crossDashboardState[key] = history.DEFAULT_CROSS_DASHBOA RD_STATE_VALUES[key]; 37 historyInstance.crossDashboardState[key] = history.DEFAULT_CROSS_DASHBOA RD_STATE_VALUES[key];
38 38
39 var builderName = 'Blink Linux'; 39 var builderName = 'Blink Linux';
40 LOAD_BUILDBOT_DATA({ 40 LOAD_BUILDBOT_DATA({
41 "no_upload_test_types": [], 41 "no_upload_test_types": [],
42 "masters": [ 42 "masters": [
43 { 43 {
44 "groups": [ "@ToT Blink" ], 44 "groups": [ "@ToT Blink" ],
45 "name": "ChromiumWebkit", 45 "name": "ChromiumWebkit",
46 "url_name": "chromium.webkit",
46 "tests": { 47 "tests": {
47 "layout-tests": { 48 "layout-tests": {
48 "builders": [builderName] 49 "builders": [builderName]
49 } 50 }
50 }, 51 },
51 "url": "http://build.chromium.org/p/chromium.win"
52 } 52 }
53 ] 53 ]
54 }); 54 });
55 builders.loadBuildersList('@ToT Blink', 'layout-tests'); 55 builders.loadBuildersList('@ToT Blink', 'layout-tests');
56 56
57 g_resultsByBuilder[builderName] = { 57 g_resultsByBuilder[builderName] = {
58 "num_failures_by_type": { 58 "num_failures_by_type": {
59 "CRASH": [ 13, 10 ], 59 "CRASH": [ 13, 10 ],
60 "MISSING": [ 6, 8 ], 60 "MISSING": [ 6, 8 ],
61 "IMAGE+TEXT": [ 17, 17 ], 61 "IMAGE+TEXT": [ 17, 17 ],
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 '<tr><td>TEXT</td><td>89</td><td>60</td></tr>' + 158 '<tr><td>TEXT</td><td>89</td><td>60</td></tr>' +
159 '<tr><td>TIMEOUT</td><td>72</td><td>48</td></tr>' + 159 '<tr><td>TIMEOUT</td><td>72</td><td>48</td></tr>' +
160 '<tr><td>PASS</td><td>28104</td><td>28586</td></tr>' + 160 '<tr><td>PASS</td><td>28104</td><td>28586</td></tr>' +
161 '<tr><td>AUDIO</td><td>0</td><td>0</td></tr>' + 161 '<tr><td>AUDIO</td><td>0</td><td>0</td></tr>' +
162 '<tr><td>WONTFIX</td><td>2</td><td>2</td></tr>' + 162 '<tr><td>WONTFIX</td><td>2</td><td>2</td></tr>' +
163 '</tbody>' + 163 '</tbody>' +
164 '</table>' + 164 '</table>' +
165 '</div>'; 165 '</div>';
166 equal(expectedHtml, htmlForBuilder('Blink Linux')); 166 equal(expectedHtml, htmlForBuilder('Blink Linux'));
167 }); 167 });
OLDNEW
« no previous file with comments | « Tools/TestResultServer/handlers/buildershandler_unittest.py ('k') | Tools/TestResultServer/static-dashboards/builders.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698