| 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-revision-details.html"> | 7 <link rel="import" href="ct-revision-details.html"> |
| 8 <link rel="import" href="../model/ct-builder-revisions-mock.html"> | 8 <link rel="import" href="../model/ct-builder-revisions-mock.html"> |
| 9 <link rel="import" href="../model/ct-commit-log-mock.html"> |
| 9 | 10 |
| 10 <script> | 11 <script> |
| 11 (function() { | 12 (function() { |
| 12 | 13 |
| 13 module("ct-revision-details"); | 14 module("ct-revision-details"); |
| 14 | 15 |
| 15 asyncTest("empty", 2, function() { | 16 asyncTest("empty", 2, function() { |
| 16 var revisionDetails = document.createElement('ct-revision-details'); | 17 var revisionDetails = document.createElement('ct-revision-details'); |
| 17 requestAnimationFrame(function() { | 18 requestAnimationFrame(function() { |
| 18 equal(revisionDetails.shadowRoot.querySelector('#fullyProcessedRevision'), n
ull); | 19 equal(revisionDetails.shadowRoot.querySelector('#fullyProcessedRevision'), n
ull); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 33 revisionDetails.revisionLog = commitLog; | 34 revisionDetails.revisionLog = commitLog; |
| 34 | 35 |
| 35 requestAnimationFrame(function() { | 36 requestAnimationFrame(function() { |
| 36 equal(revisionDetails.shadowRoot.querySelector('#fullyProcessedRevision').
innerText, '158543'); | 37 equal(revisionDetails.shadowRoot.querySelector('#fullyProcessedRevision').
innerText, '158543'); |
| 37 equal(revisionDetails.shadowRoot.querySelector('#trunkRevision').innerText
, '158545'); | 38 equal(revisionDetails.shadowRoot.querySelector('#trunkRevision').innerText
, '158545'); |
| 38 start(); | 39 start(); |
| 39 }); | 40 }); |
| 40 }); | 41 }); |
| 41 | 42 |
| 42 })() | 43 })() |
| 43 </script> | 44 </script> |
| OLD | NEW |