More hogfather structure.

This commit is contained in:
Ian Gulliver
2015-12-24 15:12:25 -08:00
parent 6e879ce1d5
commit b90d3d7b44
2 changed files with 22 additions and 9 deletions

View File

@@ -949,10 +949,14 @@ QUnit.module('Hogfather');
QUnit.asyncTest('Construct/shutdown', function(assert) {
assert.expect(4);
var cosmo = new Cosmopolite(null, randstring());
assert.ok(true, 'new Cosmopolite() succeeds');
var hogfather = new Hogfather(cosmo, randstring(), function() {
var hogfather = new Hogfather(cosmo, randstring());
assert.ok(true, 'new Hogfather()) succeeds');
window.setTimeout(function() {
hogfather.shutdown();
assert.ok(true, 'Hogfather.shutdown() succeeds');
@@ -960,6 +964,6 @@ QUnit.asyncTest('Construct/shutdown', function(assert) {
assert.ok(true, 'Cosmopolite.shutdown() succeeds');
QUnit.start();
});
assert.ok(true, 'new Hogfather()) succeeds');
}, 10 * 1000);
});