테스트: 없는 파일 확인 · 결과 폴더 버튼에 맞춤

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main v2026.10.03_004
RyuJongJin 2026-10-03 05:41:25 +09:00
parent 58e32b6314
commit 34ddd57e62
2 changed files with 5 additions and 2 deletions

View File

@ -163,7 +163,8 @@ void main() {
c.settings.maxParallelJobs = limit;
final dir = Directory.systemTemp.createTempSync('jj_par_');
for (var i = 0; i < 5; i++) {
c.videos.add(VideoItem(p.join(dir.path, 'v$i.mp4'))..info = const MediaInfo(duration: Duration(seconds: 1)));
final f = File(p.join(dir.path, 'v$i.mp4'))..writeAsStringSync(''); // 없는 파일은 만들지 않으므로
c.videos.add(VideoItem(f.path)..info = const MediaInfo(duration: Duration(seconds: 1)));
}
await c.buildAll();
dir.deleteSync(recursive: true);

View File

@ -150,7 +150,9 @@ void main() {
expect(tester.getRect(find.byTooltip('화면 크게')).left, greaterThan(0));
// 넓을 때는 글이 있는 버튼, 좁을 때는 아이콘만 (기능은 그대로)
expect(find.text('자막 만들기 & MKV 만들기 (1)'), width >= 2300 ? findsOneWidget : anything);
expect(find.textContaining('MKV 만들기 (1)'), findsWidgets);
// MKV 만들기: 아주 좁으면 아이콘만 (체크 수는 마우스를 올리면)
expect(find.byTooltip('MKV 만들기 (1)'), findsOneWidget);
if (width >= 1300) expect(find.textContaining('MKV 만들기 (1)'), findsWidgets);
}
// 가장 좁을 때: 아이콘만 남고 설명은 마우스를 올리면
expect(find.text('동영상 추가'), findsNothing);