浏览代码

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

Hallvord R. M. Steen 4 年之前
父节点
当前提交
67bd766af1
共有 1 个文件被更改,包括 2 次插入0 次删除
  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", () => {