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

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

Issue 309783002: Exclude test types that don't upload from the flakiness dashboard UI. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address review comments. update test 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 20 matching lines...) Expand all
31 function setupAggregateResultsData(includeRevisonNumbers) 31 function setupAggregateResultsData(includeRevisonNumbers)
32 { 32 {
33 var historyInstance = new history.History(flakinessConfig); 33 var historyInstance = new history.History(flakinessConfig);
34 // FIXME(jparent): Remove this once global isn't used. 34 // FIXME(jparent): Remove this once global isn't used.
35 g_history = historyInstance; 35 g_history = historyInstance;
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 "masters": [ 42 "masters": [
42 { 43 {
43 "groups": [ "@ToT Blink" ], 44 "groups": [ "@ToT Blink" ],
44 "name": "ChromiumWebkit", 45 "name": "ChromiumWebkit",
45 "tests": { 46 "tests": {
46 "layout-tests": { 47 "layout-tests": {
47 "builders": [builderName] 48 "builders": [builderName]
48 } 49 }
49 }, 50 },
50 "url": "http://build.chromium.org/p/chromium.win" 51 "url": "http://build.chromium.org/p/chromium.win"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 '<tr><td>TEXT</td><td>89</td><td>60</td></tr>' + 158 '<tr><td>TEXT</td><td>89</td><td>60</td></tr>' +
158 '<tr><td>TIMEOUT</td><td>72</td><td>48</td></tr>' + 159 '<tr><td>TIMEOUT</td><td>72</td><td>48</td></tr>' +
159 '<tr><td>PASS</td><td>28104</td><td>28586</td></tr>' + 160 '<tr><td>PASS</td><td>28104</td><td>28586</td></tr>' +
160 '<tr><td>AUDIO</td><td>0</td><td>0</td></tr>' + 161 '<tr><td>AUDIO</td><td>0</td><td>0</td></tr>' +
161 '<tr><td>WONTFIX</td><td>2</td><td>2</td></tr>' + 162 '<tr><td>WONTFIX</td><td>2</td><td>2</td></tr>' +
162 '</tbody>' + 163 '</tbody>' +
163 '</table>' + 164 '</table>' +
164 '</div>'; 165 '</div>';
165 equal(expectedHtml, htmlForBuilder('Blink Linux')); 166 equal(expectedHtml, htmlForBuilder('Blink Linux'));
166 }); 167 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698