소스 검색

test: fix OSMD_Test fail (not enough cursor.next calls)

sschmidTU 1 년 전
부모
커밋
bd3776ad0e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      test/Common/OSMD/OSMD_Test.ts

+ 1 - 1
test/Common/OSMD/OSMD_Test.ts

@@ -325,7 +325,7 @@ describe("OpenSheetMusicDisplay Main Export", () => {
                 chai.expect(cursor.NotesUnderCursor().length).to.greaterThanOrEqual(1);
                 chai.expect(cursor.Iterator.currentTimeStamp.RealValue).to.equal(0);
                 // go past end of sheet
-                for (let i: number = 1; i <= 260; i++) {
+                for (let i: number = 1; i <= 520; i++) { // 260 used to be enough when next() apparently ignored repeats
                     cursor.next(); // go past end of sheet: after 258 times in Clementi 36/1/1, the last timestamp is reached
                 }
                 chai.expect(cursor.Iterator.EndReached).to.equal(true);