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-failures.html"> | 7 <link rel="import" href="../ct-failures.html"> |
| 8 | 8 |
| 9 <link rel="import" href="../ct-commit-list.html"> | |
|
ojan
2014/09/01 00:31:15
This import was missing. Didn't break anything, bu
| |
| 10 | |
| 9 <script> | 11 <script> |
| 10 (function () { | 12 (function () { |
| 11 | 13 |
| 12 var assert = chai.assert; | 14 var assert = chai.assert; |
| 13 | 15 |
| 14 describe('ct-failures', function() { | 16 describe('ct-failures', function() { |
| 15 describe('failureComparator', function() { | 17 describe('failureComparator', function() { |
| 16 it('should sort failures', function() { | 18 it('should sort failures', function() { |
| 17 var analyzer = new CTFailures(new CTCommitList(undefined, [])); | 19 var analyzer = new CTFailures(new CTCommitList(undefined, [])); |
| 18 | 20 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 57 assert(analyzer._failureByTreeListComparator(undefined, group1, group2) > 0); | 59 assert(analyzer._failureByTreeListComparator(undefined, group1, group2) > 0); |
| 58 | 60 |
| 59 // Failures without a revision go to the end. | 61 // Failures without a revision go to the end. |
| 60 assert(analyzer._failureByTreeListComparator('chromium', group4, group1) > 0); | 62 assert(analyzer._failureByTreeListComparator('chromium', group4, group1) > 0); |
| 61 }); | 63 }); |
| 62 }); | 64 }); |
| 63 }); | 65 }); |
| 64 | 66 |
| 65 })() | 67 })() |
| 66 </script> | 68 </script> |
| OLD | NEW |