mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-13 05:51:46 -04:00
Merge pull request #1815 from paulkaplan/clear-pen-on-dispose
Clear the pen layer when runtime dispose happens.
This commit is contained in:
commit
ff3391718d
3 changed files with 21 additions and 0 deletions
test/unit
|
@ -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.dispose();
|
||||
t.equal(disposed, true);
|
||||
t.end();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue