Reland integration_test NNBD (#75074)
* Revert "Revert "NNBD integration_test (#74922)" (#75030)"
This reverts commit 87b043658b.
* fix bad merge issues
This commit is contained in:
@@ -36,7 +36,7 @@ void main() {
|
||||
find.byWidgetPredicate(
|
||||
(Widget widget) =>
|
||||
widget is Text &&
|
||||
widget.data.startsWith('Platform: ${Platform.operatingSystem}'),
|
||||
widget.data!.startsWith('Platform: ${Platform.operatingSystem}'),
|
||||
),
|
||||
findsOneWidget,
|
||||
);
|
||||
|
||||
@@ -30,7 +30,7 @@ void main() {
|
||||
find.byWidgetPredicate(
|
||||
(Widget widget) =>
|
||||
widget is Text &&
|
||||
widget.data
|
||||
widget.data!
|
||||
.startsWith('Platform: ${html.window.navigator.platform}\n'),
|
||||
),
|
||||
findsOneWidget,
|
||||
|
||||
@@ -34,7 +34,7 @@ void main() {
|
||||
find.byWidgetPredicate(
|
||||
(Widget widget) =>
|
||||
widget is Text &&
|
||||
widget.data.startsWith('Platform: ${Platform.operatingSystem}'),
|
||||
widget.data!.startsWith('Platform: ${Platform.operatingSystem}'),
|
||||
),
|
||||
findsOneWidget,
|
||||
);
|
||||
|
||||
@@ -34,7 +34,7 @@ void main() {
|
||||
find.byWidgetPredicate(
|
||||
(Widget widget) =>
|
||||
widget is Text &&
|
||||
widget.data
|
||||
widget.data!
|
||||
.startsWith('Platform: ${html.window.navigator.platform}\n'),
|
||||
),
|
||||
findsOneWidget,
|
||||
|
||||
@@ -3,7 +3,7 @@ description: Demonstrates how to use the integration_test plugin.
|
||||
publish_to: 'none'
|
||||
|
||||
environment:
|
||||
sdk: ">=2.1.0 <3.0.0"
|
||||
sdk: '>=2.12.0-0 <3.0.0'
|
||||
flutter: ">=1.6.7 <2.0.0"
|
||||
|
||||
dependencies:
|
||||
|
||||
@@ -33,7 +33,7 @@ void main() {
|
||||
await expectLater(
|
||||
find.byWidgetPredicate(
|
||||
(Widget widget) =>
|
||||
widget is Text && widget.data.startsWith('This should fail'),
|
||||
widget is Text && widget.data!.startsWith('This should fail'),
|
||||
),
|
||||
findsOneWidget,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user