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:
36
scratch-vm/test/unit/spec.js
Normal file
36
scratch-vm/test/unit/spec.js
Normal file
@@ -0,0 +1,36 @@
|
||||
const test = require('tap').test;
|
||||
const VirtualMachine = require('../../src/index');
|
||||
|
||||
test('interface', t => {
|
||||
const vm = new VirtualMachine();
|
||||
t.type(vm, 'object');
|
||||
t.type(vm.start, 'function');
|
||||
t.type(vm.greenFlag, 'function');
|
||||
t.type(vm.setTurboMode, 'function');
|
||||
t.type(vm.setCompatibilityMode, 'function');
|
||||
t.type(vm.stopAll, 'function');
|
||||
t.type(vm.clear, 'function');
|
||||
|
||||
t.type(vm.getPlaygroundData, 'function');
|
||||
t.type(vm.postIOData, 'function');
|
||||
|
||||
t.type(vm.loadProject, 'function');
|
||||
t.type(vm.addSprite, 'function');
|
||||
t.type(vm.addCostume, 'function');
|
||||
t.type(vm.addBackdrop, 'function');
|
||||
t.type(vm.addSound, 'function');
|
||||
t.type(vm.deleteCostume, 'function');
|
||||
t.type(vm.deleteSound, 'function');
|
||||
t.type(vm.renameSprite, 'function');
|
||||
t.type(vm.deleteSprite, 'function');
|
||||
|
||||
t.type(vm.attachRenderer, 'function');
|
||||
t.type(vm.blockListener, 'function');
|
||||
t.type(vm.flyoutBlockListener, 'function');
|
||||
t.type(vm.setEditingTarget, 'function');
|
||||
|
||||
t.type(vm.emitTargetsUpdate, 'function');
|
||||
t.type(vm.emitWorkspaceUpdate, 'function');
|
||||
t.type(vm.postSpriteInfo, 'function');
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user