Chromium Code Reviews| 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-failure-stream.html"> | |
| 8 | |
| 9 <script> | |
| 10 (function () { | |
| 11 | |
| 12 module("ct-failure-stream"); | |
| 13 | |
| 14 asyncTest("basic", 3, function() { | |
| 15 var stream = document.createElement('ct-failure-stream'); | |
| 16 | |
| 17 // FIXME: We should use some more interesting test data, but | |
| 18 // ct-failure-stream will give these values to ct-commit-data, | |
| 19 // which will hit the network unless we figure out how to mock | |
| 20 // out ct-commit-data in a better way. | |
| 21 stream.groups = [[], []]; | |
| 22 | |
| 23 Platform.endOfMicrotask(function() { | |
| 24 var cards = stream.shadowRoot.querySelectorAll('ct-failure-card'); | |
| 25 equal(cards.length, 2); | |
| 26 deepEqual(cards[0].failures, []); | |
| 27 deepEqual(cards[1].failures, []); | |
| 28 | |
| 29 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
| |
| 30 }); | |
| 31 }); | |
| 32 | |
| 33 })() | |
| 34 </script> | |
| OLD | NEW |