diff options
author | Samantha Houts <samhouts@users.noreply.github.com> | 2017-05-10 10:20:57 -0700 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2017-05-10 18:23:00 +0100 |
commit | ab1f669f9f87bc0c9823929e6497bc3b1a4018d6 (patch) | |
tree | 5cdb6d84147912651727dd4fd27073acb68ef117 /Xamarin.Forms.Xaml.UnitTests | |
parent | 5a472237b3b3f92cdaf5992a68a0afa0d49f4149 (diff) | |
download | xamarin-forms-ab1f669f9f87bc0c9823929e6497bc3b1a4018d6.tar.gz xamarin-forms-ab1f669f9f87bc0c9823929e6497bc3b1a4018d6.tar.bz2 xamarin-forms-ab1f669f9f87bc0c9823929e6497bc3b1a4018d6.zip |
[All] Rename Accessibility -> AutomationProperties (#912)
* [All] Renamed Accessibility -> AutomationProperties
* Update docs
* Restore doc summaries
* Revert unintended csproj changes
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests')
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/Accessibility.xaml | 16 | ||||
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/AutomationProperties.xaml | 16 | ||||
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/AutomationProperties.xaml.cs (renamed from Xamarin.Forms.Xaml.UnitTests/Accessibility.xaml.cs) | 30 | ||||
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj | 6 |
4 files changed, 34 insertions, 34 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/Accessibility.xaml b/Xamarin.Forms.Xaml.UnitTests/Accessibility.xaml deleted file mode 100644 index 6c4b32b6..00000000 --- a/Xamarin.Forms.Xaml.UnitTests/Accessibility.xaml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" - xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" - x:Class="Xamarin.Forms.Xaml.UnitTests.Accessibility"> - - <StackLayout> - <Label x:Name="label" Text="Your Name" /> - <Entry x:Name="entry" - Accessibility.Name="Name" - Accessibility.Hint="Sets your name" - Accessibility.IsInAccessibleTree="true" - Accessibility.LabeledBy="{x:Reference label}" - /> - </StackLayout> - -</ContentPage>
\ No newline at end of file diff --git a/Xamarin.Forms.Xaml.UnitTests/AutomationProperties.xaml b/Xamarin.Forms.Xaml.UnitTests/AutomationProperties.xaml new file mode 100644 index 00000000..6e035f0a --- /dev/null +++ b/Xamarin.Forms.Xaml.UnitTests/AutomationProperties.xaml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8" ?> +<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" + x:Class="Xamarin.Forms.Xaml.UnitTests.AutomationProperties"> + + <StackLayout> + <Label x:Name="label" Text="Your Name" /> + <Entry x:Name="entry" + AutomationProperties.Name="Name" + AutomationProperties.HelpText="Sets your name" + AutomationProperties.IsInAccessibleTree="true" + AutomationProperties.LabeledBy="{x:Reference label}" + /> + </StackLayout> + +</ContentPage>
\ No newline at end of file diff --git a/Xamarin.Forms.Xaml.UnitTests/Accessibility.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/AutomationProperties.xaml.cs index 2bcaab3b..2f71b519 100644 --- a/Xamarin.Forms.Xaml.UnitTests/Accessibility.xaml.cs +++ b/Xamarin.Forms.Xaml.UnitTests/AutomationProperties.xaml.cs @@ -4,14 +4,14 @@ using Xamarin.Forms.Core.UnitTests; namespace Xamarin.Forms.Xaml.UnitTests { - public partial class Accessibility : ContentPage + public partial class AutomationProperties : ContentPage { - public Accessibility() + public AutomationProperties() { InitializeComponent(); } - public Accessibility(bool useCompiledXaml) + public AutomationProperties(bool useCompiledXaml) { //this stub will be replaced at compile time } @@ -35,40 +35,40 @@ namespace Xamarin.Forms.Xaml.UnitTests [TestCase(false)] [TestCase(true)] - public void AccessibilityName(bool useCompiledXaml) + public void AutomationPropertiesName(bool useCompiledXaml) { - var layout = new Accessibility(useCompiledXaml); + var layout = new AutomationProperties(useCompiledXaml); - Assert.AreEqual("Name", (string)layout.entry.GetValue(Xamarin.Forms.Accessibility.NameProperty)); + Assert.AreEqual("Name", (string)layout.entry.GetValue(Xamarin.Forms.AutomationProperties.NameProperty)); } [TestCase(false)] [TestCase(true)] - public void AccessibilityHint(bool useCompiledXaml) + public void AutomationPropertiesHelpText(bool useCompiledXaml) { - var layout = new Accessibility(useCompiledXaml); + var layout = new AutomationProperties(useCompiledXaml); - Assert.AreEqual("Sets your name", (string)layout.entry.GetValue(Xamarin.Forms.Accessibility.HintProperty)); + Assert.AreEqual("Sets your name", (string)layout.entry.GetValue(Xamarin.Forms.AutomationProperties.HelpTextProperty)); } [TestCase(false)] [TestCase(true)] - public void AccessibilityIsInAccessibleTree(bool useCompiledXaml) + public void AutomationPropertiesIsInAccessibleTree(bool useCompiledXaml) { - var layout = new Accessibility(useCompiledXaml); + var layout = new AutomationProperties(useCompiledXaml); Application.Current.MainPage = layout; - Assert.AreEqual(true, (bool)layout.entry.GetValue(Xamarin.Forms.Accessibility.IsInAccessibleTreeProperty)); + Assert.AreEqual(true, (bool)layout.entry.GetValue(Xamarin.Forms.AutomationProperties.IsInAccessibleTreeProperty)); } [TestCase(false)] [TestCase(true)] - public void AccessibilityLabeledBy(bool useCompiledXaml) + public void AutomationPropertiesLabeledBy(bool useCompiledXaml) { - var layout = new Accessibility(useCompiledXaml); + var layout = new AutomationProperties(useCompiledXaml); Application.Current.MainPage = layout; - Assert.AreEqual(layout.label, (Element)layout.entry.GetValue(Xamarin.Forms.Accessibility.LabeledByProperty)); + Assert.AreEqual(layout.label, (Element)layout.entry.GetValue(Xamarin.Forms.AutomationProperties.LabeledByProperty)); } } } diff --git a/Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj b/Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj index 2fc6b083..ffad2db3 100644 --- a/Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj +++ b/Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj @@ -76,8 +76,8 @@ <Compile Include="..\Xamarin.Forms.Core.UnitTests\MockPlatformServices.cs"> <Link>MockPlatformServices.cs</Link> </Compile> - <Compile Include="Accessibility.xaml.cs"> - <DependentUpon>Accessibility.xaml</DependentUpon> + <Compile Include="AutomationProperties.xaml.cs"> + <DependentUpon>AutomationProperties.xaml</DependentUpon> </Compile> <Compile Include="FontConverterTests.cs" /> <Compile Include="Issues\Bz43450.xaml.cs"> @@ -918,7 +918,7 @@ </EmbeddedResource> </ItemGroup> <ItemGroup> - <EmbeddedResource Include="Accessibility.xaml"> + <EmbeddedResource Include="AutomationProperties.xaml"> <Generator>MSBuild:UpdateDesignTimeXaml</Generator> </EmbeddedResource> </ItemGroup> |