| 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-scheduled-updater.html"> | |
| 8 | |
| 9 <script> | |
| 10 | |
| 11 (function () { | |
| 12 | |
| 13 var assert = chai.assert; | |
| 14 | |
| 15 describe('ct-scheduled-updater', function() { | |
| 16 it('basic update', function(done) { | |
| 17 var onUpdate = function() { | |
| 18 // Clear the interval so we don't keep running this code during other tes
ts. | |
| 19 clearInterval(updater._intervalId); | |
| 20 assert(true); | |
| 21 done(); | |
| 22 }; | |
| 23 | |
| 24 var updater = new CTScheduledUpdater(onUpdate, 0); | |
| 25 }); | |
| 26 }); | |
| 27 | |
| 28 })(); | |
| 29 | |
| 30 </script> | |
| OLD | NEW |