π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] Trim low-value video speed tests
r4khul79dbb241ad24
diff --git a/mobile/apps/photos/test/ui/tools/editor/video_editor_controller_test.dart b/mobile/apps/photos/test/ui/tools/editor/video_editor_controller_test.dartindex b2f9c513d1..be7301e2a6 100644--- a/mobile/apps/photos/test/ui/tools/editor/video_editor_controller_test.dart+++ b/mobile/apps/photos/test/ui/tools/editor/video_editor_controller_test.dart@@ -22,15 +22,6 @@ void main() {expect(controller.snapshot().speed, 2.0);});- test('edited durations follow the chosen speed', () {- const sourceDuration = Duration(seconds: 8);- expect(- scaledVideoDuration(sourceDuration, 0.25),- const Duration(seconds: 32),- );- expect(scaledVideoDuration(sourceDuration, 2), const Duration(seconds: 4));- });-test('clockwise crop rotation preserves the selected visual region', () {_expectRectClose(rotateNormalizedRect(sourceCrop, 90),diff --git a/mobile/apps/photos/test/ui/tools/editor/video_speed_options_test.dart b/mobile/apps/photos/test/ui/tools/editor/video_speed_options_test.dartdeleted file mode 100644index c690a614ce..0000000000--- a/mobile/apps/photos/test/ui/tools/editor/video_speed_options_test.dart+++ /dev/null@@ -1,37 +0,0 @@-import 'package:flutter/material.dart';-import 'package:flutter_test/flutter_test.dart';-import 'package:photos/ente_theme_data.dart';-import 'package:photos/ui/common/video_speed_options.dart';--void main() {- testWidgets('selecting a speed updates the visible choice', (tester) async {- double selectedSpeed = 1.0;-- await tester.pumpWidget(- MaterialApp(- theme: darkThemeData,- home: Scaffold(- body: StatefulBuilder(- builder: (context, setState) => VideoSpeedOptions(- currentSpeed: selectedSpeed,- onSpeedSelected: (speed) {- setState(() => selectedSpeed = speed);- },- ),- ),- ),- ),- );-- expect(find.text('1x'), findsOneWidget);- await tester.tap(find.text('0.5x'));- await tester.pump();- expect(selectedSpeed, 0.5);- expect(- tester- .widget<VideoSpeedOptions>(find.byType(VideoSpeedOptions))- .currentSpeed,- 0.5,- );- });-}