mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-05 02:30:29 -04:00
Revert "Consistently format text bubbles"
This reverts commit bc61e547b5
.
This commit is contained in:
parent
7330129cc6
commit
2a42285abe
2 changed files with 14 additions and 32 deletions
test/unit
|
@ -15,9 +15,7 @@ const util = {
|
|||
{name: 'second name'},
|
||||
{name: 'third name'}
|
||||
]
|
||||
},
|
||||
_customState: {},
|
||||
getCustomState: () => util.target._customState
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -204,15 +202,14 @@ test('numbers should be rounded to two decimals in say', t => {
|
|||
const args = {MESSAGE: 3.14159};
|
||||
const expectedSayString = '3.14';
|
||||
|
||||
rt.addListener('SAY', () => {
|
||||
const bubbleState = util.target.getCustomState(Looks.STATE_KEY);
|
||||
t.strictEqual(bubbleState.text, expectedSayString);
|
||||
rt.removeAllListeners('SAY'); // Prevent say blocks from executing
|
||||
|
||||
rt.addListener('SAY', (target, type, sayString) => {
|
||||
t.strictEqual(sayString, expectedSayString);
|
||||
t.end();
|
||||
});
|
||||
|
||||
looks.say(args, util);
|
||||
looks.think(args, util);
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('clamp graphic effects', t => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue