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-tree-status.html"> | 7 <link rel="import" href="ct-tree-status.html"> |
8 | 8 |
9 <script> | 9 <script> |
10 (function () { | 10 (function () { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 "Tree is throttled just for fun by username@test.org"); | 61 "Tree is throttled just for fun by username@test.org"); |
62 equal(throttledtree.status, "throttled"); | 62 equal(throttledtree.status, "throttled"); |
63 }), | 63 }), |
64 closedtree.update().then(function() { | 64 closedtree.update().then(function() { |
65 equal(closedtree.message, | 65 equal(closedtree.message, |
66 "Tree is closed for maintenance by username@test.org"); | 66 "Tree is closed for maintenance by username@test.org"); |
67 equal(closedtree.status, "closed"); | 67 equal(closedtree.status, "closed"); |
68 }) | 68 }) |
69 ]).then(function() { | 69 ]).then(function() { |
70 requestAnimationFrame(function() { | 70 requestAnimationFrame(function() { |
71 ok(!opentree.shadowRoot.textContent.trim()); | 71 ok(!opentree.shadowRoot.textContent.has("open-tree-project")); |
72 ok(throttledtree.shadowRoot.textContent.has("throttled-tree-project")); | 72 ok(throttledtree.shadowRoot.textContent.has("throttled-tree-project")); |
73 ok(closedtree.shadowRoot.textContent.has("closed-tree-project")); | 73 ok(closedtree.shadowRoot.textContent.has("closed-tree-project")); |
74 start(); | 74 start(); |
75 treestatus.urlByName = urlByName; | 75 treestatus.urlByName = urlByName; |
76 }); | 76 }); |
77 }); | 77 }); |
78 }); | 78 }); |
79 }); | 79 }); |
80 | 80 |
81 })(); | 81 })(); |
82 </script> | 82 </script> |
OLD | NEW |