Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ private void OnMicrosoftUrlClicked(object sender, EventArgs e)
{
_viewModel.Source = new UrlWebViewSource
{
Url = "https://www.microsoft.com"
Url = "https://www.example.com"
};
Comment on lines 52 to 55
}
private void OnGithubUrlClicked(object sender, EventArgs e)
{
_viewModel.Source = new UrlWebViewSource
{
Url = "https://github.com/dotnet/maui"
Url = "https://www.example.com"
};
}
private void LoadMultiplePages_Clicked(object sender, EventArgs e)
Expand Down Expand Up @@ -88,8 +88,8 @@ private void LoadMultiplePages_Clicked(object sender, EventArgs e)
<body>
<h1>Welcome to Page 1</h1>
<p>This is the first page.</p>
<p><a href='https://dotnet.microsoft.com'>Go to Page 2 (Microsoft)</a></p>
<p><a href='https://github.com/dotnet/maui'>Go to Page 3 (GitHub)</a></p>
<p><a href='https://www.example.com'>Go to Page 2 (Microsoft)</a></p>
<p><a href='https://www.example.com'>Go to Page 3 (GitHub)</a></p>
Comment on lines +91 to +92
</body>
</html>"
};
Expand Down
4 changes: 2 additions & 2 deletions src/Controls/tests/TestCases.HostApp/Issues/Issue12134.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private void OnButtonClicked(object sender, EventArgs e)

private Cookie GetTestCookie()
{
return new Cookie("TestCookie", $"{_guid}", "/", "dotnet.microsoft.com");
return new Cookie("TestCookie", $"{_guid}", "/", "example.com");
}

private WebView GetWebView()
Expand All @@ -85,7 +85,7 @@ private WebView GetWebView()

SetCookieContainer(anotherWebView);
anotherWebView.Navigated += WebViewOnNavigated;
anotherWebView.Source = "https://dotnet.microsoft.com";
anotherWebView.Source = "https://example.com";
return anotherWebView;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<ScrollView>
<WebView
x:Name="TestWebView"
Source="https://www.microsoft.com"/>
Source="https://www.example.com"/>
</ScrollView>
<Button
Grid.Row="1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Issue4720WebPage()
#pragma warning disable CS0618 // Type or member is obsolete
_webView = new Microsoft.Maui.Controls.WebView()
{
Source = new UrlWebViewSource { Url = "https://www.microsoft.com/" },
Source = new UrlWebViewSource { Url = "https://www.example.com/" },
HorizontalOptions = LayoutOptions.FillAndExpand,
VerticalOptions = LayoutOptions.FillAndExpand,
BackgroundColor = Colors.Red
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public void WebView_TestCookieManagement_VerifyAddCookieWithUrlSource()
App.Tap(AddTestCookieButton);
TapApplyAndWaitForMainPage();
var cookiesStatusText = App.FindElement(CookieStatusMainLabel).GetText();
Assert.That(cookiesStatusText, Does.Contain("Domain: github.com").And.Contain("Count: 1").And.Contain("DotNetMAUICookie = My cookie"));
Assert.That(cookiesStatusText, Does.Contain("Domain: example.com").And.Contain("Count: 1").And.Contain("DotNetMAUICookie = My cookie"));
}

[Test]
Expand Down
Loading