Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
535 B
JavaScript
16 lines
535 B
JavaScript
const {test} = require('tap');
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
const VM = require('../../src/virtual-machine');
|
|
const Timer = require('../../src/util/timer');
|
|
|
|
test('compatibility stack frame is exposed on thread', t => {
|
|
const vm = new VM();
|
|
vm.loadProject(fs.readFileSync(path.join(__dirname, '../fixtures/tw-glide.sb3'))).then(() => {
|
|
vm.greenFlag();
|
|
vm.runtime._step();
|
|
t.ok(vm.runtime.threads[0].compatibilityStackFrame.timer instanceof Timer);
|
|
t.end();
|
|
});
|
|
});
|