Skip to content

Commit

Permalink
Merge pull request #1333 from rvilarl/fix/easyscoretest
Browse files Browse the repository at this point in the history
easyscore tests: render notes in keys(...)
  • Loading branch information
ronyeh authored Feb 27, 2022
2 parents 62b0073 + a47aaac commit 27583ef
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/easyscore_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,12 +555,17 @@ function drawFingeringsTest(options: TestOptions): void {
}

function keys(options: TestOptions): void {
const f = VexFlowTests.makeFactory(options, 500, 200);
const f = VexFlowTests.makeFactory(options, 700, 200);
const score = f.EasyScore();
const system = f.System();
const notes = score.notes(
'c#3/q, c##3, cb3, cbb3, cn3, c3, cbbs3, cbss3, cbs3, cdb3, cd3, c++-3, c++3, c+-3, c+3, co3, ck3'
'c#3/q, c##3, cb3, cbb3, cn3, c3, cbbs3, cbss3, cbs3, cdb3, cd3, c++-3, c++3, c+-3, c+3, co3, ck3',
{ clef: 'bass' }
);

system.addStave({ voices: [f.Voice().setStrict(false).addTickables(notes)] }).addClef('bass');
f.draw();

equal(notes[0].keys, 'c#/3');
equal(notes[1].keys, 'c##/3');
equal(notes[2].keys, 'cb/3');
Expand Down

0 comments on commit 27583ef

Please sign in to comment.