Replace addWebSource with addWebStore in tests

This commit is contained in:
adroitwhiz 2021-03-07 16:24:42 -05:00
parent 32f87b3396
commit b2dcb436ec
2 changed files with 4 additions and 4 deletions
src/playground
test/fixtures

View file

@ -592,8 +592,8 @@ const runBenchmark = 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);
vm.attachStorage(storage);
new LoadingProgress(progress => {

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