Skip to content

Commit

Permalink
Include editing beginning of document in performance test (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir-P authored Aug 21, 2024
1 parent 39a9a2f commit e725636
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ void main() {
await binding.traceAction(
() async {
await tester.tap(find.byType(RawEditor));
controller.updateSelection(const TextSelection.collapsed(offset: 0));
await tester.pump();
await tester.ime.typeText(iputText, finder: find.byType(RawEditor));
await tester.pump();
controller.updateSelection(
TextSelection.collapsed(offset: document.length - 1));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void main(List<String> args) {
'-d',
deviceName,
'--driver=test_driver/performance_driver.dart',
'--target=integration_test/scrolling_test.dart',
'--target=integration_test/scrolling_performance_test.dart',
'--profile',
],
environment: {'FLEATHER_PERF_TEST_OUTPUT_NAME': 'target_scrolling'},
Expand All @@ -39,7 +39,7 @@ void main(List<String> args) {
'-d',
deviceName,
'--driver=test_driver/performance_driver.dart',
'--target=integration_test/editing_test.dart',
'--target=integration_test/editing_performance_test.dart',
'--profile',
],
environment: {'FLEATHER_PERF_TEST_OUTPUT_NAME': 'target_editing'},
Expand All @@ -57,7 +57,7 @@ void main(List<String> args) {
'-d',
deviceName,
'--driver=test_driver/performance_driver.dart',
'--target=integration_test/scrolling_test.dart',
'--target=integration_test/scrolling_performance_test.dart',
'--profile',
],
environment: {'FLEATHER_PERF_TEST_OUTPUT_NAME': 'ref_scrolling'},
Expand All @@ -69,7 +69,7 @@ void main(List<String> args) {
'-d',
deviceName,
'--driver=test_driver/performance_driver.dart',
'--target=integration_test/editing_test.dart',
'--target=integration_test/editing_performance_test.dart',
'--profile',
],
environment: {'FLEATHER_PERF_TEST_OUTPUT_NAME': 'ref_editing'},
Expand Down

0 comments on commit e725636

Please sign in to comment.