0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-23 09:26:51 -05:00

fix tests

This commit is contained in:
liabru 2016-04-28 21:28:18 +01:00
parent e8c899aeec
commit c26684e471
2 changed files with 2 additions and 0 deletions

View file

@ -64,6 +64,7 @@ var test = function(status) {
_demo.engine.render = {};
_demo.engine.render.options = {};
_demo.runner = runner;
_demo.render = { options: {} };
_demo.mouseConstraint = Matter.MouseConstraint.create(engine);
Matter.Demo.reset(_demo);

View file

@ -50,6 +50,7 @@ var test = function() {
_demo.engine.render = {};
_demo.engine.render.options = {};
_demo.runner = runner;
_demo.render = { options: {} };
if (!(demo in Matter.Example)) {
throw '\'' + demo + '\' is not defined in Matter.Example';