Add tests for load costume error handling. Fix issue where asset data was not getting saved out properly.

This commit is contained in:
Karishma Chadha 2022-05-13 18:34:34 -04:00
parent a8618b378f
commit 70a78cf7db
15 changed files with 418 additions and 13 deletions

View file

@ -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;
};