| 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-unexpected-failures.html'> | 7 <link rel='import' href='../ct-unexpected-failures.html'> |
| 8 | 8 |
| 9 <link rel="import" href="../../model/ct-commit-list.html"> | 9 <link rel="import" href="../../model/ct-commit-list.html"> |
| 10 <link rel="import" href="../../model/ct-failures.html"> | 10 <link rel="import" href="../../model/ct-failures.html"> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 mocktree: [new CTStepFailure('step', 'reason', [])] | 58 mocktree: [new CTStepFailure('step', 'reason', [])] |
| 59 }; | 59 }; |
| 60 hasFailures.tree = 'mocktree'; | 60 hasFailures.tree = 'mocktree'; |
| 61 | 61 |
| 62 setTimeout(function() { | 62 setTimeout(function() { |
| 63 assert.notOk(hasFailures.shadowRoot.querySelector('ct-party-time')); | 63 assert.notOk(hasFailures.shadowRoot.querySelector('ct-party-time')); |
| 64 | 64 |
| 65 done(); | 65 done(); |
| 66 }); | 66 }); |
| 67 }); | 67 }); |
| 68 |
| 69 it('test showing only chromium tree status when chromium', function(done) { |
| 70 var noFailures = document.createElement('ct-unexpected-failures'); |
| 71 noFailures.tree = 'chromium'; |
| 72 |
| 73 setTimeout(function() { |
| 74 assert.equal(noFailures.shadowRoot.querySelectorAll('ct-tree-status').leng
th, 1); |
| 75 |
| 76 done(); |
| 77 }); |
| 78 }); |
| 79 |
| 80 it('test showing both chromium and blink tree status when blink', function(don
e) { |
| 81 var noFailures = document.createElement('ct-unexpected-failures'); |
| 82 noFailures.tree = 'blink'; |
| 83 |
| 84 setTimeout(function() { |
| 85 assert.equal(noFailures.shadowRoot.querySelectorAll('ct-tree-status').leng
th, 2); |
| 86 |
| 87 done(); |
| 88 }); |
| 89 }); |
| 90 |
| 68 }); | 91 }); |
| 69 | 92 |
| 70 })(); | 93 })(); |
| 71 </script> | 94 </script> |
| OLD | NEW |