| 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-party-time.html"> | |
| 8 | |
| 9 <script> | |
| 10 (function() { | |
| 11 | |
| 12 module("ct-party-time"); | |
| 13 | |
| 14 asyncTest("partyTime", 1, function() { | |
| 15 var partyTime = document.createElement('ct-party-time'); | |
| 16 | |
| 17 var tree = 'blink'; | |
| 18 | |
| 19 partyTime.failures = { blink: [ ] }; | |
| 20 partyTime.tree = tree; | |
| 21 | |
| 22 requestAnimationFrame(function() { | |
| 23 equal(partyTime._partytime, true); | |
| 24 start(); | |
| 25 }); | |
| 26 }); | |
| 27 | |
| 28 asyncTest("noPartyTime", 1, function() { | |
| 29 var noPartyTime = document.createElement('ct-party-time'); | |
| 30 | |
| 31 var resultsByBuilder = {}; | |
| 32 var failure1 = new CTFailure("step1", "reason1", resultsByBuilder, 123, 123); | |
| 33 | |
| 34 var tree = 'blink'; | |
| 35 | |
| 36 noPartyTime.failures = { blink: [ failure1 ] }; | |
| 37 noPartyTime.tree = tree; | |
| 38 | |
| 39 requestAnimationFrame(function() { | |
| 40 equal(noPartyTime._partytime, false); | |
| 41 start(); | |
| 42 }); | |
| 43 }); | |
| 44 | |
| 45 })() | |
| 46 </script> | |
| OLD | NEW |