Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Oct 25, 2021
1 parent 6d5146e commit d64a79f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion minified/JZZ.js

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,21 @@ describe('JZZ.Context', function() {
ctxt._receive(msg);
assert.equal(msg.toString(), 'f0 43 10 4c 00 00 7e 00 f7 (XG System On)');
assert.equal(ctxt._gm, 'Y');
msg = JZZ.MIDI.sxXG(0, 0, 0, 0x40, 0, 0, 0);
ctxt._receive(msg);
assert.equal(msg.toString(), 'f0 43 10 4c 00 00 00 40 00 00 00 f7 (XG Master Tuning)');
msg = JZZ.MIDI.sxXG(0, 0, 4, 0x7f);
ctxt._receive(msg);
assert.equal(msg.toString(), 'f0 43 10 4c 00 00 04 7f f7 (XG Master Volume)');
msg = JZZ.MIDI.sxXG(0, 0, 6, 0x40);
ctxt._receive(msg);
assert.equal(msg.toString(), 'f0 43 10 4c 00 00 06 40 f7 (XG Master Transpose)');
msg = JZZ.MIDI.sxXG(8, 1, 0x41, 0x40);
ctxt._receive(msg);
assert.equal(msg.toString(), 'f0 43 10 4c 08 01 41 40 f7 (XG Scale Tuning)');
msg = JZZ.MIDI.sxXG(1, 1, 1, 1);
ctxt._receive(msg);
assert.equal(msg.toString(), 'f0 43 10 4c 01 01 01 01 f7 (XG Parameter)');
});
it('device id request', function() {
var ctxt = JZZ.Context();
Expand Down

0 comments on commit d64a79f

Please sign in to comment.