Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit fdce08c

Browse files
committed
[Controls] Add repo for issue #6550
1 parent b8bffb6 commit fdce08c

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using Xamarin.Forms.CustomAttributes;
2+
using Xamarin.Forms.Internals;
3+
4+
#if UITEST
5+
using Xamarin.Forms.Core.UITests;
6+
using Xamarin.UITest;
7+
using NUnit.Framework;
8+
#endif
9+
10+
namespace Xamarin.Forms.Controls.Issues
11+
{
12+
#if UITEST
13+
[Category(UITestCategories.ManualReview)]
14+
#endif
15+
[Preserve(AllMembers = true)]
16+
[Issue(IssueTracker.Github, 6550, "Unable to activate instance of type Xamarin.Forms.Platform.Android.SearchBarRenderer from native handle", PlatformAffected.Default)]
17+
public class Issue6550 : TestContentPage // or TestMasterDetailPage, etc ...
18+
{
19+
protected override void Init()
20+
{
21+
NavigationPage.SetTitleView(this, new SearchBar());
22+
// Initialize ui here instead of ctor
23+
Content = new Label
24+
{
25+
AutomationId = "IssuePageLabel",
26+
Text = "See if I'm here"
27+
};
28+
}
29+
30+
#if UITEST
31+
[Test]
32+
public void Issue1Test()
33+
{
34+
// Delete this and all other UITEST sections if there is no way to automate the test. Otherwise, be sure to rename the test and update the Category attribute on the class. Note that you can add multiple categories.
35+
RunningApp.Screenshot ("I am at Issue 1");
36+
RunningApp.WaitForElement (q => q.Marked ("IssuePageLabel"));
37+
RunningApp.Screenshot ("I see the Label");
38+
}
39+
#endif
40+
}
41+
}

Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems

+2-1
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,7 @@
942942
<Compile Include="$(MSBuildThisFileDirectory)Issue5888.cs" />
943943
<Compile Include="$(MSBuildThisFileDirectory)Issue6334.cs" />
944944
<Compile Include="$(MSBuildThisFileDirectory)Issue6368.cs" />
945+
<Compile Include="$(MSBuildThisFileDirectory)Issue6550.cs" />
945946
</ItemGroup>
946947
<ItemGroup>
947948
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Bugzilla22229.xaml">
@@ -1218,7 +1219,7 @@
12181219
<ItemGroup>
12191220
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Issue5268.xaml">
12201221
<SubType>Designer</SubType>
1221-
<Generator>MSBuild:Compile</Generator>
1222+
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
12221223
</EmbeddedResource>
12231224
</ItemGroup>
12241225
</Project>

0 commit comments

Comments
 (0)