mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-02 01:22:31 -04:00
Update tests to allow parsing whole .sb2s
This commit is contained in:
parent
b8e67a7727
commit
1511fa79e3
21 changed files with 52 additions and 46 deletions
test/integration
|
@ -1,13 +1,13 @@
|
|||
const path = require('path');
|
||||
const test = require('tap').test;
|
||||
const makeTestStorage = require('../fixtures/make-test-storage');
|
||||
const extract = require('../fixtures/extract');
|
||||
const readAsBuffer = require('../fixtures/readProjectFile').readAsBuffer;
|
||||
const VirtualMachine = require('../../src/index');
|
||||
const Thread = require('../../src/engine/thread');
|
||||
const Runtime = require('../../src/engine/runtime');
|
||||
|
||||
const projectUri = path.resolve(__dirname, '../fixtures/default.sb2');
|
||||
const project = extract(projectUri);
|
||||
const project = readAsBuffer(projectUri);
|
||||
|
||||
const checkMonitorThreadPresent = (t, threads) => {
|
||||
t.equal(threads.length, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue