Attach the svg renderer instead of providing it in order to fix VM tests

This commit is contained in:
DD 2018-05-10 11:00:51 -04:00
parent aae1e083bc
commit 589dd7d5e0
4 changed files with 20 additions and 6 deletions
src/engine

View file

@ -917,6 +917,14 @@ class Runtime extends EventEmitter {
this.renderer = renderer;
}
/**
* Set the svg adapter, which converts scratch 2 svgs to scratch 3 svgs
* @param {!SvgRenderer} svgAdapter The adapter to attach
*/
attachV2SVGAdapter (svgAdapter) {
this.v2SvgAdapter = svgAdapter;
}
/**
* Attach the storage module
* @param {!ScratchStorage} storage The storage module to attach