Chromium Code Reviews| Index: Tools/GardeningServer/ui/ct-failure-stream-tests.html |
| diff --git a/Tools/GardeningServer/ui/ct-failure-stream-tests.html b/Tools/GardeningServer/ui/ct-failure-stream-tests.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..379b8b5ef636ed4f94ca7b6d61dad6fef50fb6cf |
| --- /dev/null |
| +++ b/Tools/GardeningServer/ui/ct-failure-stream-tests.html |
| @@ -0,0 +1,34 @@ |
| +<!-- |
| +Copyright 2014 The Chromium Authors. All rights reserved. |
| +Use of this source code is governed by a BSD-style license that can be |
| +found in the LICENSE file. |
| +--> |
| + |
| +<link rel="import" href="ct-failure-stream.html"> |
| + |
| +<script> |
| +(function () { |
| + |
| +module("ct-failure-stream"); |
| + |
| +asyncTest("basic", 3, function() { |
| + var stream = document.createElement('ct-failure-stream'); |
| + |
| + // FIXME: We should use some more interesting test data, but |
| + // ct-failure-stream will give these values to ct-commit-data, |
| + // which will hit the network unless we figure out how to mock |
| + // out ct-commit-data in a better way. |
| + stream.groups = [[], []]; |
| + |
| + Platform.endOfMicrotask(function() { |
| + var cards = stream.shadowRoot.querySelectorAll('ct-failure-card'); |
| + equal(cards.length, 2); |
| + deepEqual(cards[0].failures, []); |
| + deepEqual(cards[1].failures, []); |
| + |
| + start(); |
|
ojan
2014/06/30 04:48:14
This testing framework is so silly. Hopefully we c
abarth-chromium
2014/06/30 04:55:05
Go for it
|
| + }); |
| +}); |
| + |
| +})() |
| +</script> |