Skip to content

Commit 0724965

Browse files
Test script changes
1 parent 7d3ac74 commit 0724965

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Controls/tests/DeviceTests/Elements/NavigationPage/NavigationPageTests.iOS.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ public async Task TranslucentNavigationBar(bool enabled)
6262
SetupBuilder();
6363
var page = new ContentPage();
6464
var navPage = new NavigationPage(page) { Title = "App Page" };
65+
#pragma warning disable CS0618 // Type or member is obsolete
6566
Controls.PlatformConfiguration.iOSSpecific.NavigationPage.SetIsNavigationBarTranslucent(navPage, enabled);
67+
#pragma warning restore CS0618 // Type or member is obsolete
6668

6769
var translucent = await GetValueAsync(navPage, (handler) => (handler.ViewController as UINavigationController).NavigationBar.Translucent);
6870
Assert.Equal(enabled, translucent);

0 commit comments

Comments
 (0)