Procházet zdrojové kódy

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

Hallvord R. M. Steen před 4 roky
rodič
revize
67bd766af1
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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", () => {