From 77d6e9608332d9ae37d22993be7606f418f05818 Mon Sep 17 00:00:00 2001 From: Valentin Vignal <32538273+ValentinVignal@users.noreply.github.com> Date: Tue, 14 Dec 2021 01:09:10 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Correct=20test=20descripti?= =?UTF-8?q?on=20for=20a=20non-draggable=20item=20(#94167)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/flutter/test/widgets/reorderable_list_test.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter/test/widgets/reorderable_list_test.dart b/packages/flutter/test/widgets/reorderable_list_test.dart index e052213ff2..6e10838530 100644 --- a/packages/flutter/test/widgets/reorderable_list_test.dart +++ b/packages/flutter/test/widgets/reorderable_list_test.dart @@ -641,7 +641,7 @@ void main() { expect(items, orderedEquals([1, 0, 2, 3, 4])); }); - testWidgets('It should allow the item to be dragged when enabled is true', (WidgetTester tester) async { + testWidgets('It should not allow the item to be dragged when enabled is false', (WidgetTester tester) async { const int itemCount = 5; int onReorderCallCount = 0; final List items = List.generate(itemCount, (int index) => index); @@ -679,7 +679,7 @@ void main() { await tester.pump(kLongPressTimeout); // Drag enough to move down the first item - await drag.moveBy(const Offset(0, 150)); + await drag.moveBy(const Offset(0, 50)); await tester.pump(); await drag.up(); await tester.pumpAndSettle(); @@ -737,7 +737,7 @@ void main() { expect(items, orderedEquals([1, 0, 2, 3, 4])); }); - testWidgets('It should allow the item to be dragged when enabled is true', (WidgetTester tester) async { + testWidgets('It should not allow the item to be dragged when enabled is false', (WidgetTester tester) async { const int itemCount = 5; int onReorderCallCount = 0; final List items = List.generate(itemCount, (int index) => index);