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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 $(this).empty().append( | 92 $(this).empty().append( |
93 new ui.actions.List([ | 93 new ui.actions.List([ |
94 new ui.actions.Previous(), | 94 new ui.actions.Previous(), |
95 new ui.actions.Next() | 95 new ui.actions.Next() |
96 ])).append(resultsGrid); | 96 ])).append(resultsGrid); |
97 }.bind(this)); | 97 }.bind(this)); |
98 }, | 98 }, |
99 }); | 99 }); |
100 | 100 |
101 function isAnyReftest(testName, resultsByTest) | |
102 { | |
103 return Object.keys(resultsByTest[testName]).map(function(builder) { | |
104 return resultsByTest[testName][builder]; | |
105 }).some(function(resultNode) { | |
106 return resultNode.reftest_type && resultNode.reftest_type.length; | |
107 }); | |
108 } | |
109 | |
110 ui.results.FlakinessData = base.extends('iframe', { | 101 ui.results.FlakinessData = base.extends('iframe', { |
111 init: function() | 102 init: function() |
112 { | 103 { |
113 this.className = 'flakiness-iframe'; | 104 this.className = 'flakiness-iframe'; |
114 this.src = ui.urlForEmbeddedFlakinessDashboard(); | 105 this.src = ui.urlForEmbeddedFlakinessDashboard(); |
115 this.addEventListener('load', function() { | 106 this.addEventListener('load', function() { |
116 window.addEventListener('message', this._handleMessage.bind(this)); | 107 window.addEventListener('message', this._handleMessage.bind(this)); |
117 }); | 108 }); |
118 }, | 109 }, |
119 _handleMessage: function(event) { | 110 _handleMessage: function(event) { |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 { | 356 { |
366 this._testSelector.firstResult() | 357 this._testSelector.firstResult() |
367 }, | 358 }, |
368 currentTestName: function() | 359 currentTestName: function() |
369 { | 360 { |
370 return this._testSelector.currentTestName() | 361 return this._testSelector.currentTestName() |
371 } | 362 } |
372 }); | 363 }); |
373 | 364 |
374 })(); | 365 })(); |
OLD | NEW |