| OLD | NEW |
| (Empty) |
| 1 <!-- | |
| 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 | |
| 4 found in the LICENSE file. | |
| 5 --> | |
| 6 | |
| 7 <link rel="import" href="../ct-master-failure-card.html"> | |
| 8 | |
| 9 <link rel="import" href="../../model/ct-failure-group.html"> | |
| 10 | |
| 11 <script> | |
| 12 (function () { | |
| 13 | |
| 14 var assert = chai.assert; | |
| 15 | |
| 16 describe('ct-master-failure-card', function() { | |
| 17 var group; | |
| 18 var card; | |
| 19 var failure; | |
| 20 var masterUrl = 'https://build.chromium.org/p/chromium.webkit'; | |
| 21 | |
| 22 beforeEach(function(done) { | |
| 23 card = document.createElement('ct-master-failure-card'); | |
| 24 group = new CTFailureGroup('blink', new CTMasterFailureGroupData( | |
| 25 new CTMasterFailure('blink', masterUrl, | |
| 26 7200))); | |
| 27 card.group = group.data; | |
| 28 setTimeout(done); | |
| 29 }); | |
| 30 | |
| 31 describe('failure card UI', function() { | |
| 32 | |
| 33 it('should display master with link.', function(done) { | |
| 34 var linkText = card.shadowRoot.querySelectorAll('a')[0].textContent; | |
| 35 | |
| 36 assert.equal(linkText, masterUrl); | |
| 37 done(); | |
| 38 }); | |
| 39 | |
| 40 }); | |
| 41 | |
| 42 }); | |
| 43 | |
| 44 })() | |
| 45 </script> | |
| OLD | NEW |