Browse Source

tests: Add a check for the #929 fix to cursor test (#931)

Hallvord R. M. Steen 4 years ago
parent
commit
67bd766af1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      test/Common/OSMD/OSMD_Test.ts

+ 2 - 0
test/Common/OSMD/OSMD_Test.ts

@@ -294,6 +294,8 @@ describe("OpenSheetMusicDisplay Main Export", () => {
             for (let i: number = 0; i < 100; i++) {
                 osmd.cursor.next();
             }
+            // After 100 steps in the visible score, cursor reached 3rd note from 17, a C
+            chai.expect(osmd.cursor.NotesUnderCursor()[0].halfTone).to.equal(60);
         });
     });
     describe("cursor", () => {