From 34ddd57e62dd0f98cf14502437275d37955415af Mon Sep 17 00:00:00 2001 From: RyuJongJin <266630912+RyuJongJin@users.noreply.github.com> Date: Sat, 3 Oct 2026 05:41:25 +0900 Subject: [PATCH] =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8:=20=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=ED=8C=8C=EC=9D=BC=20=ED=99=95=EC=9D=B8=20=C2=B7=20?= =?UTF-8?q?=EA=B2=B0=EA=B3=BC=20=ED=8F=B4=EB=8D=94=20=EB=B2=84=ED=8A=BC?= =?UTF-8?q?=EC=97=90=20=EB=A7=9E=EC=B6=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- test/queue_test.dart | 3 ++- test/scale_menu_test.dart | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/queue_test.dart b/test/queue_test.dart index ea4cd37..69c3414 100644 --- a/test/queue_test.dart +++ b/test/queue_test.dart @@ -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); diff --git a/test/scale_menu_test.dart b/test/scale_menu_test.dart index e23e1aa..b478d88 100644 --- a/test/scale_menu_test.dart +++ b/test/scale_menu_test.dart @@ -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);