This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
shell/platform/android/test/io/flutter/embedding/android Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ public void flutterEngineGroupGetsInitialRouteFromIntent() {
308
308
ArgumentCaptor <FlutterEngineGroup .Options > optionsCaptor =
309
309
ArgumentCaptor .forClass (FlutterEngineGroup .Options .class );
310
310
verify (flutterEngineGroup , times (1 )).createAndRunEngine (optionsCaptor .capture ());
311
- assertEquals ("/initial_route" , optionsCaptor .getValue ().getInitialRoute ());
311
+ assertEquals ("foo://example.com /initial_route" , optionsCaptor .getValue ().getInitialRoute ());
312
312
}
313
313
314
314
@ Test
@@ -821,7 +821,7 @@ public void itSendsPushRouteInformationMessageWhenOnNewIntent() {
821
821
}
822
822
823
823
@ Test
824
- public void itDoesNotSendPushRouteInformationMessageWhenOnNewIntentIsNonHierarchicalUri () {
824
+ public void itDoesSendPushRouteInformationMessageWhenOnNewIntentIsNonHierarchicalUri () {
825
825
when (mockHost .shouldHandleDeeplinking ()).thenReturn (true );
826
826
// Create the real object that we're testing.
827
827
FlutterActivityAndFragmentDelegate delegate = new FlutterActivityAndFragmentDelegate (mockHost );
@@ -839,7 +839,7 @@ public void itDoesNotSendPushRouteInformationMessageWhenOnNewIntentIsNonHierarch
839
839
delegate .onNewIntent (mockIntent );
840
840
841
841
// Verify that the navigation channel was not given a push route message.
842
- verify (mockFlutterEngine .getNavigationChannel (), times (0 ))
842
+ verify (mockFlutterEngine .getNavigationChannel (), times (1 ))
843
843
.
pushRouteInformation (
"mailto:[email protected] " );
844
844
}
845
845
You can’t perform that action at this time.
0 commit comments