From 6a944b9decc7ad0b2f787788ceac073b6d311c25 Mon Sep 17 00:00:00 2001 From: Amir Panahandeh Date: Sun, 28 Jul 2024 16:17:42 +0330 Subject: [PATCH] Format --- .github/workflows/performance_test.yaml | 5 ++++- packages/fleather/example/integration_test/editing_test.dart | 3 ++- .../example/test_utils/analyze_performance_result.dart | 3 +-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/performance_test.yaml b/.github/workflows/performance_test.yaml index 4a0e231f..373d2593 100644 --- a/.github/workflows/performance_test.yaml +++ b/.github/workflows/performance_test.yaml @@ -35,7 +35,10 @@ jobs: run: | flutter drive -d macos --driver=test_driver/performance_driver.dart --target=integration_test/scrolling_test.dart --profile flutter drive -d macos --driver=test_driver/performance_driver.dart --target=integration_test/editing_test.dart --profile - dart run test_utils/analyze_performance_result.dart + + - name: Analyze results + working-directory: ./packages/fleather/example + run: dart run test_utils/analyze_performance_result.dart - name: Save reference summary if: github.ref == 'refs/heads/master' diff --git a/packages/fleather/example/integration_test/editing_test.dart b/packages/fleather/example/integration_test/editing_test.dart index 9defe479..73075b5c 100644 --- a/packages/fleather/example/integration_test/editing_test.dart +++ b/packages/fleather/example/integration_test/editing_test.dart @@ -24,7 +24,8 @@ void main() { controller.updateSelection( TextSelection.collapsed(offset: document.length - 1)); await tester.pump(); - await tester.ime.typeText('Hello, World!', finder: find.byType(RawEditor)); + await tester.ime + .typeText('Hello, World!', finder: find.byType(RawEditor)); }, reportKey: 'editing_timeline', ); diff --git a/packages/fleather/example/test_utils/analyze_performance_result.dart b/packages/fleather/example/test_utils/analyze_performance_result.dart index 98f18465..c8a0faf3 100644 --- a/packages/fleather/example/test_utils/analyze_performance_result.dart +++ b/packages/fleather/example/test_utils/analyze_performance_result.dart @@ -84,8 +84,7 @@ void main() { outputBuffer.write(targetValue.toStringAsFixed(2)); } if (referenceValue != null) { - outputBuffer - .writeln(' Reference: ${referenceValue.toStringAsFixed(2)}'); + outputBuffer.writeln(' Reference: ${referenceValue.toStringAsFixed(2)}'); } else { outputBuffer.writeln(); }