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

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

Issue 359533004: Group flakiness results by blink revision (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleanup for landing Created 6 years, 5 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
« no previous file with comments | « Tools/TestResultServer/static-dashboards/flakiness_dashboard_unittests.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 14 matching lines...) Expand all
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 29
30 var history = history || {}; 30 var history = history || {};
31 31
32 (function() { 32 (function() {
33 33
34 history.DEFAULT_CROSS_DASHBOARD_STATE_VALUES = { 34 history.DEFAULT_CROSS_DASHBOARD_STATE_VALUES = {
35 group: null, 35 group: '@ToT Blink',
36 showAllRuns: false, 36 showAllRuns: false,
37 testType: 'layout-tests', 37 testType: 'layout-tests',
38 useTestData: false, 38 useTestData: false,
39 } 39 }
40 40
41 history.validateParameter = function(state, key, value, validateFn) 41 history.validateParameter = function(state, key, value, validateFn)
42 { 42 {
43 if (validateFn()) { 43 if (validateFn()) {
44 state[key] = value; 44 state[key] = value;
45 return true; 45 return true;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 var CROSS_DB_INVALIDATING_PARAMETERS = { 143 var CROSS_DB_INVALIDATING_PARAMETERS = {
144 'testType': 'group' 144 'testType': 'group'
145 }; 145 };
146 146
147 history.History.prototype = { 147 history.History.prototype = {
148 initialize: function() 148 initialize: function()
149 { 149 {
150 window.onhashchange = this._handleLocationChange.bind(this); 150 window.onhashchange = this._handleLocationChange.bind(this);
151 this._handleLocationChange(); 151 this._handleLocationChange();
152 }, 152 },
153 isBlinkGroup: function()
154 {
155 var group = this.crossDashboardState.group;
156 return group && group.indexOf('@ToT Blink') >= 0;
157 },
153 isLayoutTestResults: function() 158 isLayoutTestResults: function()
154 { 159 {
155 return this.crossDashboardState.testType == 'layout-tests'; 160 return this.crossDashboardState.testType == 'layout-tests';
156 }, 161 },
157 isGPUTestResults: function() 162 isGPUTestResults: function()
158 { 163 {
159 return this.crossDashboardState.testType == 'gpu_tests'; 164 return this.crossDashboardState.testType == 'gpu_tests';
160 }, 165 },
161 parseCrossDashboardParameters: function() 166 parseCrossDashboardParameters: function()
162 { 167 {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 }, 321 },
317 _handleLocationChange: function() 322 _handleLocationChange: function()
318 { 323 {
319 if (this.parseParameters()) 324 if (this.parseParameters())
320 this._generatePage(this); 325 this._generatePage(this);
321 } 326 }
322 327
323 } 328 }
324 329
325 })(); 330 })();
OLDNEW
« no previous file with comments | « Tools/TestResultServer/static-dashboards/flakiness_dashboard_unittests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698