@@ -433,7 +433,7 @@ public void itForwardsOnRequestPermissionsResultToFlutterEngine() {
433433 public void
434434 itSendsInitialRouteFromIntentOnStartIfNoInitialRouteFromActivityAndShouldHandleDeeplinking () {
435435 Intent intent = FlutterActivity .createDefaultIntent (RuntimeEnvironment .application );
436- intent .setData (Uri .parse ("http://myApp/custom/route?query=test" ));
436+ intent .setData (Uri .parse ("http://myApp/custom/route?query=test#fragment " ));
437437
438438 ActivityController <FlutterActivity > activityController =
439439 Robolectric .buildActivity (FlutterActivity .class , intent );
@@ -453,7 +453,7 @@ public void itForwardsOnRequestPermissionsResultToFlutterEngine() {
453453
454454 // Verify that the navigation channel was given the initial route message.
455455 verify (mockFlutterEngine .getNavigationChannel (), times (1 ))
456- .setInitialRoute ("/custom/route?query=test" );
456+ .setInitialRoute ("/custom/route?query=test#fragment " );
457457 }
458458
459459 @ Test
@@ -518,13 +518,14 @@ public void itSendsPushRouteMessageWhenOnNewIntent() {
518518 delegate .onAttach (RuntimeEnvironment .application );
519519
520520 Intent mockIntent = mock (Intent .class );
521- when (mockIntent .getData ()).thenReturn (Uri .parse ("http://myApp/custom/route?query=test" ));
521+ when (mockIntent .getData ())
522+ .thenReturn (Uri .parse ("http://myApp/custom/route?query=test#fragment" ));
522523 // Emulate the host and call the method that we expect to be forwarded.
523524 delegate .onNewIntent (mockIntent );
524525
525526 // Verify that the navigation channel was given the push route message.
526527 verify (mockFlutterEngine .getNavigationChannel (), times (1 ))
527- .pushRoute ("/custom/route?query=test" );
528+ .pushRoute ("/custom/route?query=test#fragment " );
528529 }
529530
530531 @ Test
0 commit comments