| 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-card.html"> | |
| 8 | |
| 9 <script> | |
| 10 (function () { | |
| 11 | |
| 12 module("ct-failure-card"); | |
| 13 | |
| 14 asyncTest("examine", 1, function() { | |
| 15 var card = document.createElement('ct-failure-card'); | |
| 16 card.failures = []; | |
| 17 | |
| 18 Platform.endOfMicrotask(function() { | |
| 19 card.addEventListener('ct-examine-failures', function(event) { | |
| 20 deepEqual(event.detail, []); | |
| 21 start(); | |
| 22 }); | |
| 23 | |
| 24 card.shadowRoot.getElementById('examine').dispatchEvent(new CustomEvent('tap
')); | |
| 25 }); | |
| 26 }); | |
| 27 | |
| 28 })() | |
| 29 </script> | |
| OLD | NEW |