Clear the pen layer when runtime dispose happens.

This commit is contained in:
Paul Kaplan 2018-12-04 16:43:31 -05:00
parent 122443a75f
commit 6bd2307c99
3 changed files with 21 additions and 0 deletions

View file

@ -239,3 +239,14 @@ test('setCompatibilityMode does not restart if it was not running', t => {
t.equal(started, false);
t.end();
});
test('Disposing the runtime emits an event', t => {
let disposed = false;
const rt = new Runtime();
rt.addListener('RUNTIME_DISPOSED', () => {
disposed = true;
});
rt.start();
t.equal(disposed, true);
t.end();
});