@@ -3,6 +3,7 @@ import { NotationElement } from '@coderline/alphatab/NotationSettings';
33import { Settings } from '@coderline/alphatab/Settings' ;
44import { StaveProfile } from '@coderline/alphatab/StaveProfile' ;
55import { ScoreLoader } from '@coderline/alphatab/importer/ScoreLoader' ;
6+ import { TestPlatform } from 'test/TestPlatform' ;
67import { VisualTestHelper , VisualTestOptions , VisualTestRun } from 'test/visualTests/VisualTestHelper' ;
78
89describe ( 'MusicNotationTests' , ( ) => {
@@ -21,6 +22,21 @@ describe('MusicNotationTests', () => {
2122 await VisualTestHelper . runVisualTest ( 'music-notation/clefs.gp' , settings ) ;
2223 } ) ;
2324
25+ it ( 'clefs-gp5' , async ( ) => {
26+ const score = ScoreLoader . loadScoreFromBytes (
27+ await TestPlatform . loadFile ( 'test-data/guitarpro5/bass-tuning.gp5' )
28+ ) ;
29+ const settings : Settings = new Settings ( ) ;
30+ settings . display . layoutMode = LayoutMode . Page ;
31+
32+ const referenceFileName = 'test-data/visual-tests/music-notation/clefs-gp5.png' ;
33+
34+ const o = new VisualTestOptions ( score , [ new VisualTestRun ( - 1 , referenceFileName ) ] , settings ) ;
35+ o . tracks = score . tracks . map ( t => t . index ) ;
36+
37+ await VisualTestHelper . runVisualTestFull ( o ) ;
38+ } ) ;
39+
2440 it ( 'key-signatures-mixed' , async ( ) => {
2541 const settings : Settings = new Settings ( ) ;
2642 settings . display . staveProfile = StaveProfile . Score ;
0 commit comments