Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!-- | 1 <!-- |
| 2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <link rel="import" href="../ct-results-panel.html"> | 7 <link rel="import" href="../ct-results-panel.html"> |
| 8 | 8 |
| 9 <link rel="import" href="../../model/ct-failure.html"> | 9 <link rel="import" href="../../model/ct-failure.html"> |
| 10 | 10 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 90 177164, 177165 | 90 177164, 177165 |
| 91 ), | 91 ), |
| 92 ]; | 92 ]; |
| 93 | 93 |
| 94 describe('ct-results-panel', function() { | 94 describe('ct-results-panel', function() { |
| 95 var panel; | 95 var panel; |
| 96 var failures; | 96 var failures; |
| 97 | 97 |
| 98 beforeEach(function(done) { | 98 beforeEach(function(done) { |
| 99 panel = document.createElement('ct-results-panel'); | 99 panel = document.createElement('ct-results-panel'); |
| 100 // FIXME: The results-panel needs to be appended to the DOM so that the flak iness | |
| 101 // dashboard's iframe has a window when we grab location off of it, but that | |
| 102 // also means that we actually fetch requests. This results in some console | |
|
Jeffrey Yasskin
2014/09/02 18:34:53
"fetch requests"? Maybe "fetch the alerts page"?
ojan
2014/09/11 03:04:47
Clarified which request we actually fetch.
| |
| 103 // spam from the 404'ed request. | |
| 100 panel.hidden = true; | 104 panel.hidden = true; |
| 101 document.body.appendChild(panel); | 105 document.body.appendChild(panel); |
| 102 | 106 |
| 103 if (failures) | 107 if (failures) |
| 104 panel.failures = failures; | 108 panel.failures = failures; |
| 105 | 109 |
| 106 setTimeout(done); | 110 setTimeout(done); |
| 107 }); | 111 }); |
| 108 | 112 |
| 109 afterEach(function() { | 113 afterEach(function() { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 173 assert.lengthOf(results, 1); | 177 assert.lengthOf(results, 1); |
| 174 assert.equal(results[0].failure, failures[0]); | 178 assert.equal(results[0].failure, failures[0]); |
| 175 | 179 |
| 176 assert.lengthOf(panel.shadowRoot.querySelectorAll('ct-embedded-flakiness-d ashboard'), 0); | 180 assert.lengthOf(panel.shadowRoot.querySelectorAll('ct-embedded-flakiness-d ashboard'), 0); |
| 177 }); | 181 }); |
| 178 }); | 182 }); |
| 179 }); | 183 }); |
| 180 | 184 |
| 181 })(); | 185 })(); |
| 182 </script> | 186 </script> |
| OLD | NEW |