Remove old button references from routes_test (#63013)
This commit is contained in:
parent
b631013a87
commit
6338181428
@ -682,7 +682,7 @@ void main() {
|
|||||||
onGenerateRoute: (RouteSettings settings) {
|
onGenerateRoute: (RouteSettings settings) {
|
||||||
return MaterialPageRoute<dynamic>(
|
return MaterialPageRoute<dynamic>(
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return RaisedButton(
|
return ElevatedButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).push<void>(
|
Navigator.of(context).push<void>(
|
||||||
PageRouteBuilder<void>(
|
PageRouteBuilder<void>(
|
||||||
@ -702,7 +702,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Open the new route.
|
// Open the new route.
|
||||||
await tester.tap(find.byType(RaisedButton));
|
await tester.tap(find.byType(ElevatedButton));
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
expect(find.text('Open page'), findsNothing);
|
expect(find.text('Open page'), findsNothing);
|
||||||
expect(find.text('Page Two'), findsOneWidget);
|
expect(find.text('Page Two'), findsOneWidget);
|
||||||
@ -731,7 +731,7 @@ void main() {
|
|||||||
onGenerateRoute: (RouteSettings settings) {
|
onGenerateRoute: (RouteSettings settings) {
|
||||||
return MaterialPageRoute<dynamic>(
|
return MaterialPageRoute<dynamic>(
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return RaisedButton(
|
return ElevatedButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).push<void>(
|
Navigator.of(context).push<void>(
|
||||||
PageRouteBuilder<void>(
|
PageRouteBuilder<void>(
|
||||||
@ -752,7 +752,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Open the new route.
|
// Open the new route.
|
||||||
await tester.tap(find.byType(RaisedButton));
|
await tester.tap(find.byType(ElevatedButton));
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
expect(find.text('Open page'), findsNothing);
|
expect(find.text('Open page'), findsNothing);
|
||||||
expect(find.text('Page Two'), findsOneWidget);
|
expect(find.text('Page Two'), findsOneWidget);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user