Initial commit of 001code-html Scratch frontend project.
Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user