@@ -134,7 +134,7 @@ test("config", async () => {
134134 const configFesult = parser . parseConfig ( `
135135Game_name:欢迎使用WebGAL!;
136136Game_key:0f86dstRf;
137- Title_img:WebGAL_New_Enter_Image.png ;
137+ Title_img:WebGAL_New_Enter_Image.webp ;
138138Title_bgm:s_Title.mp3;
139139Title_logos: 1.png | 2.png | Image Logo.png| -show -active=false -add=op! -count=3;This is a fake config, do not reference anything.
140140 ` ) ;
@@ -159,7 +159,7 @@ test("config-stringify", async () => {
159159 const configFesult = parser . parseConfig ( `
160160Game_name:欢迎使用WebGAL!;
161161Game_key:0f86dstRf;
162- Title_img:WebGAL_New_Enter_Image.png ;
162+ Title_img:WebGAL_New_Enter_Image.webp ;
163163Title_bgm:s_Title.mp3;
164164Title_logos: 1.png | 2.png | Image Logo.png| -show -active=false -add=op! -count=3;This is a fake config, do not reference anything.
165165 ` ) ;
@@ -218,17 +218,17 @@ test("changeFigure with duration and animation args", async () => {
218218 return fileName ;
219219 } , ADD_NEXT_ARG_LIST , SCRIPT_CONFIG ) ;
220220
221- const result = parser . parse ( `changeFigure:stand.png -duration=1000 -enter=fadeIn -exit=fadeOut;` , 'test' , 'test' ) ;
221+ const result = parser . parse ( `changeFigure:stand.webp -duration=1000 -enter=fadeIn -exit=fadeOut;` , 'test' , 'test' ) ;
222222 expect ( result . sentenceList ) . toContainEqual ( {
223223 command : commandType . changeFigure ,
224224 commandRaw : "changeFigure" ,
225- content : "stand.png " ,
225+ content : "stand.webp " ,
226226 args : [
227227 { key : 'duration' , value : 1000 } ,
228228 { key : 'enter' , value : 'fadeIn' } ,
229229 { key : 'exit' , value : 'fadeOut' }
230230 ] ,
231- sentenceAssets : [ { name : "stand.png " , url : 'stand.png ' , type : fileType . figure , lineNumber : 0 } ] ,
231+ sentenceAssets : [ { name : "stand.webp " , url : 'stand.webp ' , type : fileType . figure , lineNumber : 0 } ] ,
232232 subScene : [ ]
233233 } ) ;
234234} ) ;
0 commit comments