mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-25 13:50:22 -04:00
Merge pull request #1632 from mzgoddard/stop-other-sounds
Stop other sounds
This commit is contained in:
commit
5e5655c916
3 changed files with 53 additions and 7 deletions
test/unit
|
@ -67,7 +67,7 @@ test('ask and stop all dismisses question', t => {
|
|||
test('ask and stop other scripts dismisses if it is the last question', t => {
|
||||
const rt = new Runtime();
|
||||
const s = new Sensing(rt);
|
||||
const util = {target: {visible: false}, thread: {}};
|
||||
const util = {target: {visible: false, sprite: {}}, thread: {}};
|
||||
|
||||
const expectedQuestion = 'a question';
|
||||
|
||||
|
@ -94,8 +94,8 @@ test('ask and stop other scripts dismisses if it is the last question', t => {
|
|||
test('ask and stop other scripts asks next question', t => {
|
||||
const rt = new Runtime();
|
||||
const s = new Sensing(rt);
|
||||
const util = {target: {visible: false}, thread: {}};
|
||||
const util2 = {target: {visible: false}, thread: {}};
|
||||
const util = {target: {visible: false, sprite: {}}, thread: {}};
|
||||
const util2 = {target: {visible: false, sprite: {}}, thread: {}};
|
||||
|
||||
const expectedQuestion = 'a question';
|
||||
const nextQuestion = 'a followup';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue