Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Sep 10, 2019
1 parent 4900151 commit 14d3551
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions javascript/JZZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,11 @@
}
_W.prototype.connect = function(arg) {
this._push(_connectW, [arg]);
return this._thenable();
return this;
};
_W.prototype.disconnect = function(arg) {
this._push(_disconnectW, [arg]);
return this._thenable();
return this;
};
function _changed(x0, y0, x1, y1) {
var i;
Expand Down
16 changes: 8 additions & 8 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ module.exports = function(JZZ, PARAMS, DRIVER) {
});
}
function onFail(err) { console.log('requestMIDIAccess failed!', err); }
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 100);
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 10);
});
},

Expand All @@ -536,7 +536,7 @@ module.exports = function(JZZ, PARAMS, DRIVER) {
setTimeout(function() { src.connect(); }, 10);
}
function onFail(err) { console.log('requestMIDIAccess failed!', err); }
JZZ.requestMIDIAccess().then(onSuccess, onFail);
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 10);
});
},

Expand All @@ -562,7 +562,7 @@ module.exports = function(JZZ, PARAMS, DRIVER) {
setTimeout(function() { src.disconnect(); }, 10);
}
function onFail(err) { console.log('requestMIDIAccess failed!', err); }
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 100);
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 10);
});
},

Expand Down Expand Up @@ -634,7 +634,7 @@ module.exports = function(JZZ, PARAMS, DRIVER) {
setTimeout(call0, 10);
}
function onFail(err) { console.log('requestMIDIAccess failed!', err); }
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 100);
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 10);
});
},

Expand All @@ -661,7 +661,7 @@ module.exports = function(JZZ, PARAMS, DRIVER) {
});
}
function onFail(err) { console.log('requestMIDIAccess failed!', err); }
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 100);
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 10);
});
},

Expand All @@ -680,7 +680,7 @@ module.exports = function(JZZ, PARAMS, DRIVER) {
setTimeout(function() { dst.connect(); }, 10);
}
function onFail(err) { console.log('requestMIDIAccess failed!', err); }
JZZ.requestMIDIAccess().then(onSuccess, onFail);
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 10);
});
},

Expand All @@ -705,7 +705,7 @@ module.exports = function(JZZ, PARAMS, DRIVER) {
setTimeout(function() { dst.disconnect(); }, 10);
}
function onFail(err) { console.log('requestMIDIAccess failed!', err); }
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 100);
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 10);
});
},

Expand Down Expand Up @@ -767,7 +767,7 @@ module.exports = function(JZZ, PARAMS, DRIVER) {
setTimeout(call0, 10);
}
function onFail(err) { console.log('requestMIDIAccess failed!', err); }
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 100);
setTimeout(function() { JZZ.requestMIDIAccess().then(onSuccess, onFail); }, 10);
});
},

Expand Down

0 comments on commit 14d3551

Please sign in to comment.