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-commit-list.html"> |
| 8 |
| 9 <link rel="import" href="../model/ct-commit-log-mock.html"> |
| 10 |
| 11 <script> |
| 12 (function () { |
| 13 |
| 14 module("ct-commit-list"); |
| 15 |
| 16 asyncTest("basic", 2, function() { |
| 17 var list = document.createElement('ct-commit-list'); |
| 18 |
| 19 list.first = 158545; |
| 20 list.last = 158547; |
| 21 list.commits = new CTCommitLogMock(); |
| 22 |
| 23 Platform.endOfMicrotask(function() { |
| 24 var commits = list.shadowRoot.querySelectorAll('ct-commit'); |
| 25 equal(commits.length, 1); |
| 26 deepEqual(list._revisions, [158545, 158546, 158547]) |
| 27 |
| 28 start(); |
| 29 }); |
| 30 }); |
| 31 |
| 32 })() |
| 33 </script> |
OLD | NEW |