Skip to content

Commit 27583ef

Browse files
authored
Merge pull request #1333 from rvilarl/fix/easyscoretest
easyscore tests: render notes in keys(...)
2 parents 62b0073 + a47aaac commit 27583ef

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/easyscore_tests.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -555,12 +555,17 @@ function drawFingeringsTest(options: TestOptions): void {
555555
}
556556

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

566+
system.addStave({ voices: [f.Voice().setStrict(false).addTickables(notes)] }).addClef('bass');
567+
f.draw();
568+
564569
equal(notes[0].keys, 'c#/3');
565570
equal(notes[1].keys, 'c##/3');
566571
equal(notes[2].keys, 'cb/3');

0 commit comments

Comments
 (0)