Skip to content

Commit 1fbdb29

Browse files
committed
dialog [nfc]: Rename checkNoErrorDialog to checkNoDialog
1 parent 5f8b0a9 commit 1fbdb29

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

test/widgets/action_sheet_test.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ void main() {
489489
await tester.tap(findButtonForLabel('Mark as resolved'));
490490
await tester.pumpAndSettle();
491491

492-
checkNoErrorDialog(tester);
492+
checkNoDialog(tester);
493493
checkRequest(message.id, '✔ zulip');
494494
});
495495

@@ -504,7 +504,7 @@ void main() {
504504
await tester.tap(findButtonForLabel('Mark as resolved'));
505505
await tester.pumpAndSettle();
506506

507-
checkNoErrorDialog(tester);
507+
checkNoDialog(tester);
508508
checkRequest(message.id, '✔ zulip');
509509
});
510510

@@ -517,7 +517,7 @@ void main() {
517517
await tester.tap(findButtonForLabel('Mark as unresolved'));
518518
await tester.pumpAndSettle();
519519

520-
checkNoErrorDialog(tester);
520+
checkNoDialog(tester);
521521
checkRequest(message.id, 'zulip');
522522
});
523523

@@ -530,7 +530,7 @@ void main() {
530530
await tester.tap(findButtonForLabel('Mark as unresolved'));
531531
await tester.pumpAndSettle();
532532

533-
checkNoErrorDialog(tester);
533+
checkNoDialog(tester);
534534
checkRequest(message.id, 'zulip');
535535
});
536536

test/widgets/app_test.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -401,14 +401,14 @@ void main() {
401401
check(ZulipApp.ready).value.isFalse();
402402
await tester.pump();
403403
check(findSnackBarByText(message).evaluate()).isEmpty();
404-
checkNoErrorDialog(tester);
404+
checkNoDialog(tester);
405405

406406
check(ZulipApp.ready).value.isTrue();
407407
// After app startup, reportErrorToUserBriefly displays a SnackBar.
408408
reportErrorToUserBriefly(message, details: details);
409409
await tester.pumpAndSettle();
410410
check(findSnackBarByText(message).evaluate()).single;
411-
checkNoErrorDialog(tester);
411+
checkNoDialog(tester);
412412

413413
// Open the error details dialog.
414414
await tester.tap(find.text('Details'));
@@ -493,7 +493,7 @@ void main() {
493493
reportErrorToUserModally(title, message: message);
494494
check(ZulipApp.ready).value.isFalse();
495495
await tester.pump();
496-
checkNoErrorDialog(tester);
496+
checkNoDialog(tester);
497497

498498
check(ZulipApp.ready).value.isTrue();
499499
// After app startup, reportErrorToUserModally displays an [AlertDialog].

test/widgets/compose_box_test.dart

+5-5
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void main() {
273273
await prepareWithContent(tester,
274274
makeStringWithCodePoints(kMaxMessageLengthCodePoints));
275275
await tapSendButton(tester);
276-
checkNoErrorDialog(tester);
276+
checkNoDialog(tester);
277277
});
278278

279279
testWidgets('code points not counted unnecessarily', (tester) async {
@@ -310,7 +310,7 @@ void main() {
310310
await prepareWithTopic(tester,
311311
makeStringWithCodePoints(kMaxTopicLengthCodePoints));
312312
await tapSendButton(tester);
313-
checkNoErrorDialog(tester);
313+
checkNoDialog(tester);
314314
});
315315

316316
testWidgets('code points not counted unnecessarily', (tester) async {
@@ -630,7 +630,7 @@ void main() {
630630
await setupAndTapSend(tester, prepareResponse: (int messageId) {
631631
connection.prepare(json: SendMessageResult(id: messageId).toJson());
632632
});
633-
checkNoErrorDialog(tester);
633+
checkNoDialog(tester);
634634
});
635635

636636
testWidgets('ZulipApiException', (tester) async {
@@ -748,7 +748,7 @@ void main() {
748748
check(call.allowMultiple).equals(true);
749749
check(call.type).equals(FileType.media);
750750

751-
checkNoErrorDialog(tester);
751+
checkNoDialog(tester);
752752

753753
check(controller!.content.text)
754754
.equals('see image: [Uploading image.jpg…]()\n\n');
@@ -807,7 +807,7 @@ void main() {
807807
check(call.source).equals(ImageSource.camera);
808808
check(call.requestFullMetadata).equals(false);
809809

810-
checkNoErrorDialog(tester);
810+
checkNoDialog(tester);
811811

812812
check(controller!.content.text)
813813
.equals('see image: [Uploading image.jpg…]()\n\n');

test/widgets/dialog_checks.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ Widget checkErrorDialog(WidgetTester tester, {
4848
}
4949
}
5050

51-
/// Checks that there is no error dialog.
51+
/// Checks that there is no dialog.
5252
/// Fails if one is found.
53-
void checkNoErrorDialog(WidgetTester tester) {
53+
void checkNoDialog(WidgetTester tester) {
5454
check(find.byType(Dialog)).findsNothing();
5555
check(find.byType(AlertDialog)).findsNothing();
5656
check(find.bySubtype<AlertDialog>()).findsNothing();

0 commit comments

Comments
 (0)