Skip to content

Commit

Permalink
Run perf tests for longer
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir-P committed Aug 15, 2024
1 parent 487aa36 commit 182b78f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 4 additions & 2 deletions packages/fleather/example/integration_test/editing_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ 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(iputText, finder: find.byType(RawEditor));
},
reportKey: 'editing_timeline',
);
});
}

final iputText =
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.';

final markdown = '''
# Fleather
Expand Down
12 changes: 9 additions & 3 deletions packages/fleather/example/integration_test/scrolling_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@ void main() {

await binding.traceAction(
() async {
while (scrollController.position.extentAfter != 0) {
await tester.drag(scrollableFinder, const Offset(0, -200));
await tester.pump();
for (var i = 0; i < 10; i++) {
while (scrollController.position.extentAfter != 0) {
await tester.drag(scrollableFinder, const Offset(0, -200));
await tester.pump();
}
while (scrollController.position.extentBefore != 0) {
await tester.drag(scrollableFinder, const Offset(0, 200));
await tester.pump();
}
}
},
reportKey: 'scrolling_timeline',
Expand Down

0 comments on commit 182b78f

Please sign in to comment.