mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-11 21:43:58 -04:00
Add tests for load costume error handling. Fix issue where asset data was not getting saved out properly.
This commit is contained in:
parent
a8618b378f
commit
70a78cf7db
15 changed files with 418 additions and 13 deletions
test/fixtures
4
test/fixtures/make-test-storage.js
vendored
4
test/fixtures/make-test-storage.js
vendored
|
@ -39,8 +39,8 @@ const getAssetUrl = function (asset) {
|
|||
const makeTestStorage = function () {
|
||||
const storage = new ScratchStorage();
|
||||
const AssetType = storage.AssetType;
|
||||
storage.addWebSource([AssetType.Project], getProjectUrl);
|
||||
storage.addWebSource([AssetType.ImageVector, AssetType.ImageBitmap, AssetType.Sound], getAssetUrl);
|
||||
storage.addWebStore([AssetType.Project], getProjectUrl);
|
||||
storage.addWebStore([AssetType.ImageVector, AssetType.ImageBitmap, AssetType.Sound], getAssetUrl);
|
||||
return storage;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue