mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-12 14:03:57 -04:00
Mock bitmap loading and add sb2 and sprite2 tests for a missing svg costume
This commit is contained in:
parent
b2bbcb897a
commit
28c6daaaf7
6 changed files with 218 additions and 0 deletions
test/fixtures
7
test/fixtures/fake-bitmap-adapter.js
vendored
Normal file
7
test/fixtures/fake-bitmap-adapter.js
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
const FakeBitmapAdapter = require('scratch-svg-renderer').BitmapAdapter;
|
||||
|
||||
FakeBitmapAdapter.prototype.resize = function (canvas) {
|
||||
return canvas;
|
||||
};
|
||||
|
||||
module.exports = FakeBitmapAdapter;
|
Loading…
Add table
Add a link
Reference in a new issue