mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-20 18:29:57 -04:00
Merge pull request #362 from thisandagain/bugfix/coverage
Add integration test coverage
This commit is contained in:
commit
5daaaa4438
20 changed files with 221 additions and 501 deletions
src/engine
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue