mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-09 12:33: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
13
test/fixtures/fake-renderer.js
vendored
13
test/fixtures/fake-renderer.js
vendored
|
@ -4,6 +4,19 @@ const FakeRenderer = function () {
|
|||
this.y = 0;
|
||||
this.order = 0;
|
||||
this.spriteCount = 5;
|
||||
this._nextSkinId = -1;
|
||||
};
|
||||
|
||||
FakeRenderer.prototype.createSVGSkin = function () {
|
||||
return this._nextSkinId++;
|
||||
};
|
||||
|
||||
FakeRenderer.prototype.getSkinSize = function (d) { // eslint-disable-line no-unused-vars
|
||||
return [0, 0];
|
||||
};
|
||||
|
||||
FakeRenderer.prototype.getSkinRotationCenter = function (d) { // eslint-disable-line no-unused-vars
|
||||
return [0, 0];
|
||||
};
|
||||
|
||||
FakeRenderer.prototype.createDrawable = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue