Merge pull request from thisandagain/bugfix/coverage

Add integration test coverage
This commit is contained in:
Andrew Sliwinski 2017-01-03 09:38:14 -05:00 committed by GitHub
commit 5daaaa4438
20 changed files with 221 additions and 501 deletions
src/engine

View file

@ -22,6 +22,7 @@ var defaultBlockPackages = {
/**
* Manages targets, scripts, and the sequencer.
* @constructor
*/
var Runtime = function () {
// Bind event emitter
@ -609,7 +610,7 @@ Runtime.prototype.setEditingTarget = function (editingTarget) {
Runtime.prototype.setCompatibilityMode = function (compatibilityModeOn) {
this.compatibilityMode = compatibilityModeOn;
if (this._steppingInterval) {
self.clearInterval(this._steppingInterval);
clearInterval(this._steppingInterval);
this.start();
}
};
@ -819,7 +820,7 @@ Runtime.prototype.start = function () {
interval = Runtime.THREAD_STEP_INTERVAL_COMPATIBILITY;
}
this.currentStepTime = interval;
this._steppingInterval = self.setInterval(function () {
this._steppingInterval = setInterval(function () {
this._step();
}.bind(this), interval);
};