|
2 | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | 3 | // found in the LICENSE file. |
4 | 4 |
|
5 | | -// no-shuffle: |
6 | | -// //TODO(gspencergoog): Remove this tag once this test's state leaks/test |
7 | | -// dependencies have been fixed. |
8 | | -// https://github.com/flutter/flutter/issues/85160 |
9 | | -// Fails with "flutter test --test-randomize-ordering-seed=456" |
10 | 5 | // reduced-test-set: |
11 | 6 | // This file is run as part of a reduced test set in CI on Mac and Windows |
12 | 7 | // machines. |
13 | | -@Tags(<String>['reduced-test-set', 'no-shuffle']) |
| 8 | +@Tags(<String>['reduced-test-set']) |
14 | 9 | library; |
15 | 10 |
|
16 | 11 | import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle, Color; |
@@ -5003,9 +4998,11 @@ void main() { |
5003 | 4998 |
|
5004 | 4999 | group('Text selection toolbar', () { |
5005 | 5000 | testWidgets('Collapsed selection works', (WidgetTester tester) async { |
| 5001 | + tester.view.physicalSize = const Size(400, 400); |
| 5002 | + tester.view.devicePixelRatio = 1; |
| 5003 | + addTearDown(tester.view.reset); |
| 5004 | + |
5006 | 5005 | EditableText.debugDeterministicCursor = true; |
5007 | | - tester.binding.window.physicalSizeTestValue = const Size(400, 400); |
5008 | | - tester.binding.window.devicePixelRatioTestValue = 1; |
5009 | 5006 | TextEditingController controller; |
5010 | 5007 | EditableTextState state; |
5011 | 5008 | Offset bottomLeftSelectionPosition; |
@@ -5183,15 +5180,14 @@ void main() { |
5183 | 5180 | ), |
5184 | 5181 | ), |
5185 | 5182 | ); |
5186 | | - |
5187 | | - tester.binding.window.clearPhysicalSizeTestValue(); |
5188 | | - tester.binding.window.clearDevicePixelRatioTestValue(); |
5189 | 5183 | }); |
5190 | 5184 |
|
5191 | 5185 | testWidgets('selecting multiple words works', (WidgetTester tester) async { |
| 5186 | + tester.view.physicalSize = const Size(400, 400); |
| 5187 | + tester.view.devicePixelRatio = 1; |
| 5188 | + addTearDown(tester.view.reset); |
| 5189 | + |
5192 | 5190 | EditableText.debugDeterministicCursor = true; |
5193 | | - tester.binding.window.physicalSizeTestValue = const Size(400, 400); |
5194 | | - tester.binding.window.devicePixelRatioTestValue = 1; |
5195 | 5191 | final TextEditingController controller; |
5196 | 5192 | final EditableTextState state; |
5197 | 5193 |
|
@@ -5253,15 +5249,14 @@ void main() { |
5253 | 5249 | ), |
5254 | 5250 | ), |
5255 | 5251 | ); |
5256 | | - |
5257 | | - tester.binding.window.clearPhysicalSizeTestValue(); |
5258 | | - tester.binding.window.clearDevicePixelRatioTestValue(); |
5259 | 5252 | }); |
5260 | 5253 |
|
5261 | 5254 | testWidgets('selecting multiline works', (WidgetTester tester) async { |
| 5255 | + tester.view.physicalSize = const Size(400, 400); |
| 5256 | + tester.view.devicePixelRatio = 1; |
| 5257 | + addTearDown(tester.view.reset); |
| 5258 | + |
5262 | 5259 | EditableText.debugDeterministicCursor = true; |
5263 | | - tester.binding.window.physicalSizeTestValue = const Size(400, 400); |
5264 | | - tester.binding.window.devicePixelRatioTestValue = 1; |
5265 | 5260 | final TextEditingController controller; |
5266 | 5261 | final EditableTextState state; |
5267 | 5262 |
|
@@ -5327,9 +5322,6 @@ void main() { |
5327 | 5322 | ), |
5328 | 5323 | ), |
5329 | 5324 | ); |
5330 | | - |
5331 | | - tester.binding.window.clearPhysicalSizeTestValue(); |
5332 | | - tester.binding.window.clearDevicePixelRatioTestValue(); |
5333 | 5325 | }); |
5334 | 5326 |
|
5335 | 5327 | // This is a regression test for |
|
0 commit comments