Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created UX test helper class and simplified the tests using the new UX pattern #1855

Merged
Merged
Show file tree
Hide file tree
Changes from 2 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
8 changes: 5 additions & 3 deletions build/Tests/FunctionalTests/FunctionalTests.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\UXTestHelpers.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\Tests\AssetsLibraryTests\AssetsLibraryTestHelpers.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\MenuTableViewController.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\TestEnabledUITextField.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\UIKitControls\UIButtonViewController.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\UIKitControls\UIButtonWithControlsViewController.h" />
</ItemGroup>
Expand All @@ -272,9 +273,6 @@
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\Tests\FileActivationTests.mm" />
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\Tests\UIApplicationTests.mm" />
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\Tests\ToastNotificationTests.mm" />
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\MenuTableViewController.m" />
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\UIKitControls\UIButtonViewController.m" />
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\UIKitControls\UIButtonWithControlsViewController.m" />
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\Tests\UIKitTests\UIViewTests.mm" />
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\Tests\UIKitTests\UIActivityIndicatorTests.mm" />
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\Tests\UIKitTests\UIButtonTests.mm" />
Expand All @@ -293,6 +291,10 @@
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\Tests\NSURLStorageFileTests.mm">
<ObjectiveCARC>true</ObjectiveCARC>
</ClangCompile>
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\MenuTableViewController.m" />
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\TestEnabledUITextField.mm" />
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\UIKitControls\UIButtonViewController.m" />
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\UIKitControls\UIButtonWithControlsViewController.m" />
</ItemGroup>
<ItemGroup>
<Xml Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\Tests\Default.AppxManifest.xml" />
Expand Down
20 changes: 13 additions & 7 deletions build/Tests/FunctionalTests/FunctionalTests.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<Filter Include="Tests\UIKitTests">
<UniqueIdentifier>{34bd5c19-86ba-4661-bbb6-63295c1ca90f}</UniqueIdentifier>
</Filter>
<Filter Include="Tests\ViewControllers">
<Filter Include="Tests\ExternalUXResources">
<UniqueIdentifier>{4c703c5d-0c21-4205-9e17-55fed2d45b67}</UniqueIdentifier>
</Filter>
</ItemGroup>
Expand All @@ -43,13 +43,16 @@
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\AppDelegate.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\MainViewController.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\MenuTableViewController.h">
<Filter>Tests\ViewControllers</Filter>
<Filter>Tests\ExternalUXResources</Filter>
</ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\TestEnabledUITextField.h">
<Filter>Tests\ExternalUXResources</Filter>
</ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\UIKitControls\UIButtonViewController.h">
<Filter>Tests\ViewControllers</Filter>
<Filter>Tests\ExternalUXResources</Filter>
</ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\UIKitControls\UIButtonWithControlsViewController.h">
<Filter>Tests\ViewControllers</Filter>
<Filter>Tests\ExternalUXResources</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -137,13 +140,16 @@
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\AppDelegate.mm" />
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\tests\functionaltests\MainViewController.mm" />
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\MenuTableViewController.m">
<Filter>Tests\ViewControllers</Filter>
<Filter>Tests\ExternalUXResources</Filter>
</ClangCompile>
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\TestEnabledUITextField.mm">
<Filter>Tests\ExternalUXResources</Filter>
</ClangCompile>
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\UIKitControls\UIButtonViewController.m">
<Filter>Tests\ViewControllers</Filter>
<Filter>Tests\ExternalUXResources</Filter>
</ClangCompile>
<ClangCompile Include="$(MSBuildThisFileDirectory)..\..\..\samples\XAMLCatalog\XAMLCatalog\UIKitControls\UIButtonWithControlsViewController.m">
<Filter>Tests\ViewControllers</Filter>
<Filter>Tests\ExternalUXResources</Filter>
</ClangCompile>
</ItemGroup>
<ItemGroup>
Expand Down
30 changes: 15 additions & 15 deletions samples/XAMLCatalog/XAMLCatalog-WinStore10.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.22823.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "XAMLCatalog", "XAMLCatalog", "{FD57C970-6D9B-4AC7-BBBA-C589B2EA41BF}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "XAMLCatalog", "XAMLCatalog", "{AA7965C9-621F-4C5A-B4DE-2A49A00085BF}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "XAMLCatalog", "XAMLCatalog.vsimporter\XAMLCatalog-WinStore10\XAMLCatalog.vcxproj", "{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "XAMLCatalog", "XAMLCatalog.vsimporter\XAMLCatalog-WinStore10\XAMLCatalog.vcxproj", "{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
Expand All @@ -16,23 +16,23 @@ Global
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}.Debug|ARM.ActiveCfg = Debug|ARM
{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}.Debug|ARM.Build.0 = Debug|ARM
{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}.Debug|ARM.Deploy.0 = Debug|ARM
{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}.Debug|Win32.ActiveCfg = Debug|Win32
{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}.Debug|Win32.Build.0 = Debug|Win32
{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}.Debug|Win32.Deploy.0 = Debug|Win32
{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}.Release|ARM.ActiveCfg = Release|ARM
{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}.Release|ARM.Build.0 = Release|ARM
{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}.Release|ARM.Deploy.0 = Release|ARM
{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}.Release|Win32.ActiveCfg = Release|Win32
{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}.Release|Win32.Build.0 = Release|Win32
{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}.Release|Win32.Deploy.0 = Release|Win32
{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}.Debug|ARM.ActiveCfg = Debug|ARM
{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}.Debug|ARM.Build.0 = Debug|ARM
{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}.Debug|ARM.Deploy.0 = Debug|ARM
{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}.Debug|Win32.ActiveCfg = Debug|Win32
{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}.Debug|Win32.Build.0 = Debug|Win32
{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}.Debug|Win32.Deploy.0 = Debug|Win32
{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}.Release|ARM.ActiveCfg = Release|ARM
{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}.Release|ARM.Build.0 = Release|ARM
{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}.Release|ARM.Deploy.0 = Release|ARM
{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}.Release|Win32.ActiveCfg = Release|Win32
{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}.Release|Win32.Build.0 = Release|Win32
{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}.Release|Win32.Deploy.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0} = {FD57C970-6D9B-4AC7-BBBA-C589B2EA41BF}
{17FE0EC9-715B-4AB0-8491-5D31D3772A0A} = {AA7965C9-621F-4C5A-B4DE-2A49A00085BF}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
IgnorableNamespaces="uap mp">

<Identity
Name="610e2818-92fa-4f57-b41f-702cfd837520"
Name="933806d9-2a5a-4ada-b2f4-336f47dc253e"
Publisher="CN=islandwood"
Version="1.0.0.0" />

<mp:PhoneIdentity PhoneProductId="610e2818-92fa-4f57-b41f-702cfd837520" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<mp:PhoneIdentity PhoneProductId="933806d9-2a5a-4ada-b2f4-336f47dc253e" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

<Properties>
<DisplayName>XAMLCatalog</DisplayName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformMinVersion>10.0.10586.0</WindowsTargetPlatformMinVersion>
<Keyword>IslandwoodProj</Keyword>
<ProjectGuid>{D51F1FE7-DDDB-44C8-A77D-8901FFE9F5E0}</ProjectGuid>
<ProjectGuid>{17FE0EC9-715B-4AB0-8491-5D31D3772A0A}</ProjectGuid>
<RootNamespace>XAMLCatalog</RootNamespace>
<WINOBJC_SDK_ROOT Condition="'$(WINOBJC_SDK_ROOT)' == ''">..\..\..\..</WINOBJC_SDK_ROOT>
</PropertyGroup>
Expand Down Expand Up @@ -195,6 +195,7 @@
<ClInclude Include="..\..\XAMLCatalog\MiscellaneousViewController.h" />
<ClInclude Include="..\..\XAMLCatalog\ProgrammaticViewController.h" />
<ClInclude Include="..\..\XAMLCatalog\StoryBoardViewController.h" />
<ClInclude Include="..\..\XAMLCatalog\TestEnabledUITextField.h" />
<ClInclude Include="..\..\XAMLCatalog\UIKitControls\UIActionSheetViewController.h" />
<ClInclude Include="..\..\XAMLCatalog\UIKitControls\UIActivityIndicatorViewController.h" />
<ClInclude Include="..\..\XAMLCatalog\UIKitControls\UIButtonViewController.h" />
Expand All @@ -209,6 +210,7 @@
<ClangCompile Include="..\..\XAMLCatalog\MiscellaneousViewController.m" />
<ClangCompile Include="..\..\XAMLCatalog\ProgrammaticViewController.m" />
<ClangCompile Include="..\..\XAMLCatalog\StoryBoardViewController.m" />
<ClangCompile Include="..\..\XAMLCatalog\TestEnabledUITextField.mm" />
<ClangCompile Include="..\..\XAMLCatalog\UIKitControls\UIActionSheetViewController.m" />
<ClangCompile Include="..\..\XAMLCatalog\UIKitControls\UIActivityIndicatorViewController.m" />
<ClangCompile Include="..\..\XAMLCatalog\UIKitControls\UIButtonViewController.m" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Common">
<UniqueIdentifier>{5b63b4d9-4cf3-4ee7-9c07-979a1b7a2b90}</UniqueIdentifier>
<UniqueIdentifier>{a89af828-b1b0-43eb-a93c-f0365abb8a2e}</UniqueIdentifier>
</Filter>
<Filter Include="Assets">
<UniqueIdentifier>{b90f1aee-77fa-432c-9e80-f335fb3ec883}</UniqueIdentifier>
<UniqueIdentifier>{e49647b2-ae29-46c1-a3e1-dacdf6b63691}</UniqueIdentifier>
</Filter>
<Filter Include="Images">
<UniqueIdentifier>{F640AAC6-FC86-4B3E-B494-AEFDE936AA7B}</UniqueIdentifier>
<UniqueIdentifier>{CEF02F3B-93FF-4D69-A57E-1FC1ED26F52F}</UniqueIdentifier>
</Filter>
<Filter Include="XAMLCatalog">
<UniqueIdentifier>{F46AF905-132A-46B5-A5F7-198B6EF7BF89}</UniqueIdentifier>
<UniqueIdentifier>{0D8051F2-4386-4572-85B1-84C24FBCDA8B}</UniqueIdentifier>
</Filter>
<Filter Include="XAMLCatalog\Supporting Files">
<UniqueIdentifier>{9C38E223-8855-4368-A64F-F9248851EAB7}</UniqueIdentifier>
<UniqueIdentifier>{AA46132E-2E52-4A04-8DC9-D4EC13902318}</UniqueIdentifier>
</Filter>
<Filter Include="XAMLCatalog\UIKitControls">
<UniqueIdentifier>{DD2EAD14-F632-40F4-B349-3CCBE2AC94A6}</UniqueIdentifier>
<UniqueIdentifier>{B8A238B4-288E-47B5-8CEE-83EEB7FD892F}</UniqueIdentifier>
</Filter>
<Filter Include="XAMLCatalog\XamlControls">
<UniqueIdentifier>{40CE0495-F3FF-4BE6-8050-A0AE1D45915D}</UniqueIdentifier>
<UniqueIdentifier>{91E7FE91-D8C9-490E-97AE-F54669A95E47}</UniqueIdentifier>
</Filter>
<Filter Include="Xcode Variable Files">
<UniqueIdentifier>{B50ADFCA-EEB5-466C-8241-136AA5DEB14A}</UniqueIdentifier>
<UniqueIdentifier>{4840D6B9-B14D-4CD3-AB60-25E11864F178}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -72,6 +72,9 @@
<ClInclude Include="..\..\XAMLCatalog\StoryBoardViewController.h">
<Filter>XAMLCatalog</Filter>
</ClInclude>
<ClInclude Include="..\..\XAMLCatalog\TestEnabledUITextField.h">
<Filter>XAMLCatalog</Filter>
</ClInclude>
<ClInclude Include="..\..\XAMLCatalog\UIKitControls\UIActionSheetViewController.h">
<Filter>XAMLCatalog\UIKitControls</Filter>
</ClInclude>
Expand Down Expand Up @@ -114,6 +117,9 @@
<ClangCompile Include="..\..\XAMLCatalog\StoryBoardViewController.m">
<Filter>XAMLCatalog</Filter>
</ClangCompile>
<ClangCompile Include="..\..\XAMLCatalog\TestEnabledUITextField.mm">
<Filter>XAMLCatalog</Filter>
</ClangCompile>
<ClangCompile Include="..\..\XAMLCatalog\UIKitControls\UIActionSheetViewController.m">
<Filter>XAMLCatalog\UIKitControls</Filter>
</ClangCompile>
Expand Down
6 changes: 6 additions & 0 deletions samples/XAMLCatalog/XAMLCatalog.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
234767291E2EE058006D97CB /* UIViewViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 234767231E2EE058006D97CB /* UIViewViewController.m */; };
2347672C1E2EE090006D97CB /* UIButtonWithControlsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2347672B1E2EE090006D97CB /* UIButtonWithControlsViewController.m */; };
2347672F1E300CF0006D97CB /* UILabelViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2347672E1E300CF0006D97CB /* UILabelViewController.m */; };
239EBAEB1E39559C00C845D0 /* TestEnabledUITextField.mm in Sources */ = {isa = PBXBuildFile; fileRef = 239EBAEA1E39559C00C845D0 /* TestEnabledUITextField.mm */; };
6EEB8A381CE4F4050021021E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6EEB8A371CE4F4050021021E /* main.m */; };
6EEB8A3B1CE4F4050021021E /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6EEB8A3A1CE4F4050021021E /* AppDelegate.m */; };
6EEB8A3E1CE4F4050021021E /* ProgrammaticViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6EEB8A3D1CE4F4050021021E /* ProgrammaticViewController.m */; };
Expand Down Expand Up @@ -47,6 +48,8 @@
2347672B1E2EE090006D97CB /* UIButtonWithControlsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = UIButtonWithControlsViewController.m; path = UIKitControls/UIButtonWithControlsViewController.m; sourceTree = "<group>"; };
2347672D1E300CF0006D97CB /* UILabelViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UILabelViewController.h; path = UIKitControls/UILabelViewController.h; sourceTree = "<group>"; };
2347672E1E300CF0006D97CB /* UILabelViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = UILabelViewController.m; path = UIKitControls/UILabelViewController.m; sourceTree = "<group>"; };
239EBAE91E39559C00C845D0 /* TestEnabledUITextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestEnabledUITextField.h; sourceTree = "<group>"; };
239EBAEA1E39559C00C845D0 /* TestEnabledUITextField.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = TestEnabledUITextField.mm; sourceTree = "<group>"; };
6EEB8A331CE4F4050021021E /* XAMLCatalog.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = XAMLCatalog.app; sourceTree = BUILT_PRODUCTS_DIR; };
6EEB8A371CE4F4050021021E /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
6EEB8A391CE4F4050021021E /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -135,6 +138,8 @@
6EEB8A3D1CE4F4050021021E /* ProgrammaticViewController.m */,
6EEB8A3F1CE4F4050021021E /* StoryBoardViewController.h */,
6EEB8A401CE4F4050021021E /* StoryBoardViewController.m */,
239EBAE91E39559C00C845D0 /* TestEnabledUITextField.h */,
239EBAEA1E39559C00C845D0 /* TestEnabledUITextField.mm */,
6EEB8A361CE4F4050021021E /* Supporting Files */,
2324634F1CE69E2C00B7AAE4 /* UIKitControls */,
7B67A2091DC366E1004BEF5D /* XamlControls */,
Expand Down Expand Up @@ -245,6 +250,7 @@
2347672C1E2EE090006D97CB /* UIButtonWithControlsViewController.m in Sources */,
234767281E2EE058006D97CB /* UITextFieldViewController.m in Sources */,
234767251E2EE058006D97CB /* UIActivityIndicatorViewController.m in Sources */,
239EBAEB1E39559C00C845D0 /* TestEnabledUITextField.mm in Sources */,
6EEB8A411CE4F4050021021E /* StoryBoardViewController.m in Sources */,
234767261E2EE058006D97CB /* UIButtonViewController.m in Sources */,
6EEB8A3B1CE4F4050021021E /* AppDelegate.m in Sources */,
Expand Down
21 changes: 21 additions & 0 deletions samples/XAMLCatalog/XAMLCatalog/TestEnabledUITextField.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//******************************************************************************
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//******************************************************************************

#import "UIKit/UITextField.h"

// Subclassed UITextField to support functional testing
@interface TestEnabledUITextField : UITextField
@end
28 changes: 28 additions & 0 deletions samples/XAMLCatalog/XAMLCatalog/TestEnabledUITextField.mm
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//******************************************************************************
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//******************************************************************************

#import "TestEnabledUITextField.h"

#import <UIKit/UITextField.h>

@implementation TestEnabledUITextField
// NOTE: Programmatically setting the text via setText: does not trigger the text field delegates or events so we subclass
// UITextField and fire our editing event manually
- (void)setText:(NSString*)text {
[super setText:text];
[self sendActionsForControlEvents:UIControlEventEditingChanged];
}
@end
Loading