@@ -399,15 +399,15 @@ void main () {
399399
400400 testWidgets ('smoke' , (tester) async {
401401 final SemanticsHandle semanticsHandle = tester.ensureSemantics ();
402- final loc = await ZulipLocalizations .delegate.load (const Locale ('en' ));
402+ final zulipLocalizations = await ZulipLocalizations .delegate.load (const Locale ('en' ));
403403 try {
404404 addTearDown (testBinding.reset);
405405 testBinding.globalStore.loadPerAccountDuration = loadPerAccountDuration;
406406 await prepare (tester);
407407
408408 // While loading, the loading page should be shown and have the semantics label.
409409 checkOnLoadingPage ();
410- expect (find.bySemanticsLabel (loc .loading), findsOneWidget);
410+ expect (find.bySemanticsLabel (zulipLocalizations .loading), findsOneWidget);
411411
412412 await tester.pump (loadPerAccountDuration);
413413 checkOnHomePage (tester, expectedAccount: eg.selfAccount);
@@ -418,7 +418,7 @@ void main () {
418418
419419 testWidgets ('"Try another account" button appears after timeout' , (tester) async {
420420 final SemanticsHandle semanticsHandle = tester.ensureSemantics ();
421- final loc = await ZulipLocalizations .delegate.load (const Locale ('en' ));
421+ final zulipLocalizations = await ZulipLocalizations .delegate.load (const Locale ('en' ));
422422 try {
423423 addTearDown (testBinding.reset);
424424 testBinding.globalStore.loadPerAccountDuration = loadPerAccountDuration;
@@ -428,7 +428,7 @@ void main () {
428428 check (find.text ('Try another account' ).hitTestable ()).findsNothing ();
429429
430430 // The loading semantics should already be present.
431- expect (find.bySemanticsLabel (loc .loading), findsOneWidget);
431+ expect (find.bySemanticsLabel (zulipLocalizations .loading), findsOneWidget);
432432
433433 await tester.pump (kTryAnotherAccountWaitPeriod);
434434 checkOnLoadingPage ();
@@ -443,7 +443,7 @@ void main () {
443443
444444 testWidgets ('while loading, go back from ChooseAccountPage' , (tester) async {
445445 final SemanticsHandle semanticsHandle = tester.ensureSemantics ();
446- final loc = await ZulipLocalizations .delegate.load (const Locale ('en' ));
446+ final zulipLocalizations = await ZulipLocalizations .delegate.load (const Locale ('en' ));
447447 try {
448448 testBinding.globalStore.loadPerAccountDuration = loadPerAccountDuration;
449449 await prepare (tester);
@@ -456,12 +456,12 @@ void main () {
456456 check (lastPoppedRoute).isA <MaterialWidgetRoute >().page.isA <ChooseAccountPage >();
457457 await tester.pump (
458458 (lastPoppedRoute as TransitionRoute ).reverseTransitionDuration
459- // TODO not sure why a 1ms fudge is needed; investigate.
460- + Duration (milliseconds: 1 ));
459+ // TODO not sure why a 1ms fudge is needed; investigate.
460+ + Duration (milliseconds: 1 ));
461461 checkOnLoadingPage ();
462462
463463 // Semantics check: loading label present
464- expect (find.bySemanticsLabel (loc .loading), findsOneWidget);
464+ expect (find.bySemanticsLabel (zulipLocalizations .loading), findsOneWidget);
465465
466466 await tester.pump (loadPerAccountDuration);
467467 checkOnHomePage (tester, expectedAccount: eg.selfAccount);
@@ -472,7 +472,7 @@ void main () {
472472
473473 testWidgets ('while loading, choose a different account' , (tester) async {
474474 final SemanticsHandle semanticsHandle = tester.ensureSemantics ();
475- final loc = await ZulipLocalizations .delegate.load (const Locale ('en' ));
475+ final zulipLocalizations = await ZulipLocalizations .delegate.load (const Locale ('en' ));
476476 try {
477477 testBinding.globalStore.loadPerAccountDuration = loadPerAccountDuration;
478478 await prepare (tester);
@@ -485,7 +485,7 @@ void main () {
485485 // While the second account is still loading, we should be on a loading page.
486486 await tester.pump (loadPerAccountDuration);
487487 checkOnLoadingPage ();
488- expect (find.bySemanticsLabel (loc .loading), findsOneWidget);
488+ expect (find.bySemanticsLabel (zulipLocalizations .loading), findsOneWidget);
489489
490490 await tester.pump (loadPerAccountDuration);
491491 // The second load finished.
@@ -497,7 +497,7 @@ void main () {
497497
498498 testWidgets ('while loading, choosing an account disallows going back' , (tester) async {
499499 final SemanticsHandle semanticsHandle = tester.ensureSemantics ();
500- final loc = await ZulipLocalizations .delegate.load (const Locale ('en' ));
500+ final zulipLocalizations = await ZulipLocalizations .delegate.load (const Locale ('en' ));
501501 try {
502502 testBinding.globalStore.loadPerAccountDuration = loadPerAccountDuration;
503503 await prepare (tester);
@@ -512,7 +512,7 @@ void main () {
512512 .isNotNull ().isFirst.isTrue ();
513513
514514 // Semantics check: ensure loading label present and first route is our account route.
515- expect (find.bySemanticsLabel (loc .loading), findsOneWidget);
515+ expect (find.bySemanticsLabel (zulipLocalizations .loading), findsOneWidget);
516516
517517 await tester.pump (loadPerAccountDuration); // wait for loadPerAccount
518518 checkOnHomePage (tester, expectedAccount: eg.otherAccount);
@@ -523,7 +523,7 @@ void main () {
523523
524524 testWidgets ('while loading, go to nested levels of ChooseAccountPage' , (tester) async {
525525 final SemanticsHandle semanticsHandle = tester.ensureSemantics ();
526- final loc = await ZulipLocalizations .delegate.load (const Locale ('en' ));
526+ final zulipLocalizations = await ZulipLocalizations .delegate.load (const Locale ('en' ));
527527 try {
528528 testBinding.globalStore.loadPerAccountDuration = loadPerAccountDuration;
529529 final thirdAccount = eg.account (user: eg.thirdUser);
@@ -545,7 +545,7 @@ void main () {
545545 ..accountId.equals (eg.otherAccount.id);
546546
547547 // Semantics: loading label should appear during the account switch.
548- expect (find.bySemanticsLabel (loc .loading), findsOneWidget);
548+ expect (find.bySemanticsLabel (zulipLocalizations .loading), findsOneWidget);
549549
550550 await tester.pump (kTryAnotherAccountWaitPeriod);
551551
0 commit comments