mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-13 22:11:14 -04:00
Replace addWebSource with addWebStore in tests
This commit is contained in:
parent
32f87b3396
commit
b2dcb436ec
2 changed files with 4 additions and 4 deletions
|
@ -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 => {
|
||||
|
|
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