summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues
diff options
context:
space:
mode:
authorkingces95 <kingces95@users.noreply.github.com>2016-04-06 23:03:59 -0700
committerJason Smith <jason.smith@xamarin.com>2016-04-06 23:03:59 -0700
commita0f0b3954ed73c891e52f10ab21243b8473da72a (patch)
treefa013ea8f1cdcfe58438dafac8510f41e36dc25a /Xamarin.Forms.Controls.Issues
parente3191821bae99fb52d32644566cd14a8f496e36a (diff)
downloadxamarin-forms-a0f0b3954ed73c891e52f10ab21243b8473da72a.tar.gz
xamarin-forms-a0f0b3954ed73c891e52f10ab21243b8473da72a.tar.bz2
xamarin-forms-a0f0b3954ed73c891e52f10ab21243b8473da72a.zip
Enable warnings as errors in tests
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla29229.cs2
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla32148.cs3
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33714.cs2
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1567.cs2
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1698.cs2
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1758.cs3
6 files changed, 6 insertions, 8 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla29229.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla29229.cs
index 059c2110..dab7c657 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla29229.cs
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla29229.cs
@@ -16,7 +16,7 @@ namespace Xamarin.Forms.Controls.Issues
absLayout.Scale = 1;
var cPx = new ListView ();
- Point ptx = Point.Zero;
+ //Point ptx = Point.Zero;
cPx.ItemTapped += delegate (object sender, ItemTappedEventArgs e) {
};
cPx.ClassId = "weather";
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla32148.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla32148.cs
index 76e3819b..5e3a0635 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla32148.cs
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla32148.cs
@@ -26,10 +26,7 @@ namespace Xamarin.Forms.Controls
{
Title = "Contacts";
Content = CreateContent();
- // Disable the await warning
- #pragma warning disable 4014
LoadContactsAsync();
- #pragma warning restore 4014
}
Layout CreateContent()
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33714.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33714.cs
index 6fce942d..2ae7f388 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33714.cs
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla33714.cs
@@ -77,7 +77,7 @@ namespace Xamarin.Forms.Controls.Issues
void list_ItemSelected(object sender, SelectedItemChangedEventArgs e)
{
- var listView = (ListView) sender;
+ //var listView = (ListView) sender;
_masterPage.Detail = new NavigationPage(new DetailPage());
}
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1567.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1567.cs
index 0b67d092..d44ddf12 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1567.cs
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1567.cs
@@ -23,7 +23,7 @@ namespace Xamarin.Forms.Controls
Title = "Modal",
Content = new Label (){ Text = "Second screen" },
};
- var np2 = new NavigationPage(cp2) { Title = "Modal" };
+ //var np2 = new NavigationPage(cp2) { Title = "Modal" };
try {
await Navigation.PushModalAsync (cp2);
} catch (InvalidOperationException ex) {
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1698.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1698.cs
index d50727fd..bc5014ce 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1698.cs
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1698.cs
@@ -22,7 +22,7 @@ namespace Xamarin.Forms.Controls
public async void btn_Clicked(object sender, EventArgs e)
{
- string x = await DisplayActionSheet("Action Sheet", "Cancel", null, new string[] { "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "Eleven", "twelve", "thirteen", "fourteen" });
+ await DisplayActionSheet("Action Sheet", "Cancel", null, new string[] { "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "Eleven", "twelve", "thirteen", "fourteen" });
}
}
}
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1758.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1758.cs
index 0afd2ebb..7cb392f1 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1758.cs
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1758.cs
@@ -22,7 +22,8 @@ namespace Xamarin.Forms.Controls
_button = new Button { Text = "Button" };
// The same behavior happens for both Absolute and Relative layout.
- var layout = true ? Relative() : Absolute();
+ //var layout = true ? Relative() : Absolute();
+ var layout = Relative();
Animate();