Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0f0ae68

Browse files
Update test Dart code to pass the latest Dart analyzer rules (#20986)
1 parent b22a8c6 commit 0f0ae68

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

testing/dart/compositing_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ void main() {
326326
);
327327
});
328328
testNoSharing((SceneBuilder builder, EngineLayer oldLayer) {
329-
return builder.pushPhysicalShape(path: Path(), color: const Color.fromARGB(0, 0, 0, 0), oldLayer: oldLayer as PhysicalShapeEngineLayer);
329+
return builder.pushPhysicalShape(path: Path(), color: const Color.fromARGB(0, 0, 0, 0), oldLayer: oldLayer as PhysicalShapeEngineLayer, elevation: 0.0);
330330
});
331331
testNoSharing((SceneBuilder builder, EngineLayer oldLayer) {
332332
return builder.pushColorFilter(

testing/scenario_app/lib/src/locale_initialization.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,16 @@ class LocaleInitialization extends Scenario {
6060
currentValueLength: 0,
6161
scrollChildren: 0,
6262
scrollIndex: 0,
63+
scrollPosition: 0.0,
64+
scrollExtentMax: 0.0,
65+
scrollExtentMin: 0.0,
6366
transform: Matrix4.identity().storage,
6467
elevation: 0.0,
6568
thickness: 0.0,
69+
hint: '',
70+
value: '',
71+
increasedValue: '',
72+
decreasedValue: '',
6673
childrenInTraversalOrder: Int32List(0),
6774
childrenInHitTestOrder: Int32List(0),
6875
additionalActions: Int32List(0),
@@ -101,9 +108,16 @@ class LocaleInitialization extends Scenario {
101108
currentValueLength: 0,
102109
scrollChildren: 0,
103110
scrollIndex: 0,
111+
scrollPosition: 0.0,
112+
scrollExtentMax: 0.0,
113+
scrollExtentMin: 0.0,
104114
transform: Matrix4.identity().storage,
105115
elevation: 0.0,
106116
thickness: 0.0,
117+
hint: '',
118+
value: '',
119+
increasedValue: '',
120+
decreasedValue: '',
107121
childrenInTraversalOrder: Int32List(0),
108122
childrenInHitTestOrder: Int32List(0),
109123
additionalActions: Int32List(0),

testing/scenario_app/lib/src/platform_echo_mixin.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import 'dart:ui';
88

99
import 'scenario.dart';
1010

11+
/// Echo platform messages back to the sender.
1112
mixin PlatformEchoMixin on Scenario {
1213
@override
1314
void onPlatformMessage(

testing/scenario_app/lib/src/send_text_focus_semantics.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,16 @@ class SendTextFocusScemantics extends Scenario {
5555
currentValueLength: 0,
5656
scrollChildren: 0,
5757
scrollIndex: 0,
58+
scrollPosition: 0.0,
59+
scrollExtentMax: 0.0,
60+
scrollExtentMin: 0.0,
5861
transform: Matrix4.identity().storage,
5962
elevation: 0.0,
6063
thickness: 0.0,
64+
hint: '',
65+
value: '',
66+
increasedValue: '',
67+
decreasedValue: '',
6168
childrenInTraversalOrder: Int32List(0),
6269
childrenInHitTestOrder: Int32List(0),
6370
additionalActions: Int32List(0),
@@ -105,9 +112,16 @@ class SendTextFocusScemantics extends Scenario {
105112
currentValueLength: 0,
106113
scrollChildren: 0,
107114
scrollIndex: 0,
115+
scrollPosition: 0.0,
116+
scrollExtentMax: 0.0,
117+
scrollExtentMin: 0.0,
108118
transform: Matrix4.identity().storage,
109119
elevation: 0.0,
110120
thickness: 0.0,
121+
hint: '',
122+
value: '',
123+
increasedValue: '',
124+
decreasedValue: '',
111125
childrenInTraversalOrder: Int32List(0),
112126
childrenInHitTestOrder: Int32List(0),
113127
additionalActions: Int32List(0),

0 commit comments

Comments
 (0)