testWidgets('a force press initiates a force press',(WidgetTestertester)async{
testWidgetsWithLeakTracking('a force press initiates a force press',(WidgetTestertester)async{
awaitpumpGestureDetector(tester);
awaitpumpGestureDetector(tester);
finalintpointerValue=tester.nextPointer;
finalintpointerValue=tester.nextPointer;
...
@@ -298,7 +307,7 @@ void main() {
...
@@ -298,7 +307,7 @@ void main() {
expect(forcePressStartCount,4);
expect(forcePressStartCount,4);
});
});
testWidgets('a tap and then force press initiates a force press and not a double tap',(WidgetTestertester)async{
testWidgetsWithLeakTracking('a tap and then force press initiates a force press and not a double tap',(WidgetTestertester)async{
awaitpumpGestureDetector(tester);
awaitpumpGestureDetector(tester);
finalintpointerValue=tester.nextPointer;
finalintpointerValue=tester.nextPointer;
...
@@ -351,7 +360,7 @@ void main() {
...
@@ -351,7 +360,7 @@ void main() {
expect(doubleTapDownCount,0);
expect(doubleTapDownCount,0);
});
});
testWidgets('a long press from a touch device is recognized as a long single tap',(WidgetTestertester)async{
testWidgetsWithLeakTracking('a long press from a touch device is recognized as a long single tap',(WidgetTestertester)async{
awaitpumpGestureDetector(tester);
awaitpumpGestureDetector(tester);
finalintpointerValue=tester.nextPointer;
finalintpointerValue=tester.nextPointer;
...
@@ -368,7 +377,7 @@ void main() {
...
@@ -368,7 +377,7 @@ void main() {
expect(singleLongTapStartCount,1);
expect(singleLongTapStartCount,1);
});
});
testWidgets('a long press from a mouse is just a tap',(WidgetTestertester)async{
testWidgetsWithLeakTracking('a long press from a mouse is just a tap',(WidgetTestertester)async{
awaitpumpGestureDetector(tester);
awaitpumpGestureDetector(tester);
finalintpointerValue=tester.nextPointer;
finalintpointerValue=tester.nextPointer;
...
@@ -386,7 +395,7 @@ void main() {
...
@@ -386,7 +395,7 @@ void main() {
expect(singleLongTapStartCount,0);
expect(singleLongTapStartCount,0);
});
});
testWidgets('a touch drag is recognized for text selection',(WidgetTestertester)async{
testWidgetsWithLeakTracking('a touch drag is recognized for text selection',(WidgetTestertester)async{
awaitpumpGestureDetector(tester);
awaitpumpGestureDetector(tester);
finalintpointerValue=tester.nextPointer;
finalintpointerValue=tester.nextPointer;
...
@@ -408,7 +417,7 @@ void main() {
...
@@ -408,7 +417,7 @@ void main() {
expect(dragEndCount,1);
expect(dragEndCount,1);
});
});
testWidgets('a mouse drag is recognized for text selection',(WidgetTestertester)async{
testWidgetsWithLeakTracking('a mouse drag is recognized for text selection',(WidgetTestertester)async{
awaitpumpGestureDetector(tester);
awaitpumpGestureDetector(tester);
finalintpointerValue=tester.nextPointer;
finalintpointerValue=tester.nextPointer;
...
@@ -433,7 +442,7 @@ void main() {
...
@@ -433,7 +442,7 @@ void main() {
expect(dragEndCount,1);
expect(dragEndCount,1);
});
});
testWidgets('a slow mouse drag is still recognized for text selection',(WidgetTestertester)async{
testWidgetsWithLeakTracking('a slow mouse drag is still recognized for text selection',(WidgetTestertester)async{
awaitpumpGestureDetector(tester);
awaitpumpGestureDetector(tester);
finalintpointerValue=tester.nextPointer;
finalintpointerValue=tester.nextPointer;
...
@@ -458,7 +467,7 @@ void main() {
...
@@ -458,7 +467,7 @@ void main() {
expect(dragEndCount,1);
expect(dragEndCount,1);
});
});
testWidgets('test TextSelectionGestureDetectorBuilder long press on Apple Platforms - focused renderEditable',(WidgetTestertester)async{
testWidgetsWithLeakTracking('test TextSelectionGestureDetectorBuilder long press on Apple Platforms - focused renderEditable',(WidgetTestertester)async{
testWidgets('test TextSelectionGestureDetectorBuilder toggles toolbar on single tap on previous selection iOS',(WidgetTestertester)async{
testWidgetsWithLeakTracking('test TextSelectionGestureDetectorBuilder toggles toolbar on single tap on previous selection iOS',(WidgetTestertester)async{
testWidgets('test TextSelectionGestureDetectorBuilder shows spell check toolbar on single tap on iOS if word misspelled and text selection toolbar on additonal taps',(WidgetTestertester)async{
testWidgetsWithLeakTracking('test TextSelectionGestureDetectorBuilder shows spell check toolbar on single tap on iOS if word misspelled and text selection toolbar on additonal taps',(WidgetTestertester)async{