Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2013-11-23 14:06:16 +0400
committerLluis Sanchez <lluis@xamarin.com>2013-11-23 14:06:46 +0400
commit305df6f5e697f239a1dfd8b1ddc249ddf96aa4cb (patch)
tree9013133cafaf546d6bff6c38ceb6ebfed4b603f8 /Testing
parent85461f6071da6df3fc2edeb072950cbb529474fe (diff)
Fix some unit tests
When a box has a size of 0, make sure all children also are reallocated with a size of 0. Mac: fix NRE when updating visibility.
Diffstat (limited to 'Testing')
-rw-r--r--Testing/Tests/WidgetTests.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/Testing/Tests/WidgetTests.cs b/Testing/Tests/WidgetTests.cs
index 176409c8..fc1ec4fa 100644
--- a/Testing/Tests/WidgetTests.cs
+++ b/Testing/Tests/WidgetTests.cs
@@ -279,14 +279,14 @@ namespace Xwt
if (defw > 1) {
w.WidthRequest = defw - 1;
WaitForEvents ();
- Assert.AreEqual (defw - 1, w.WidthRequest);
- Assert.AreEqual (defw - 1, w.Size.Width);
+ Assert.AreEqual (defw - 1, w.WidthRequest, "w1");
+ Assert.AreEqual (defw - 1, w.Size.Width, "w2");
}
if (defh > 1) {
w.HeightRequest = defh - 1;
WaitForEvents ();
- Assert.AreEqual (defh - 1, w.HeightRequest);
- Assert.AreEqual (defh - 1, w.Size.Height);
+ Assert.AreEqual (defh - 1, w.HeightRequest, "h1");
+ Assert.AreEqual (defh - 1, w.Size.Height, "h2");
}
w.WidthRequest = -1;
@@ -294,10 +294,10 @@ namespace Xwt
WaitForEvents ();
Assert.AreEqual (-1, w.WidthRequest);
- Assert.AreEqual (defw, w.Size.Width);
+ Assert.AreEqual (defw, w.Size.Width, "fw1");
Assert.AreEqual (-1, w.HeightRequest);
- Assert.AreEqual (defh, w.Size.Height);
+ Assert.AreEqual (defh, w.Size.Height, "fw2");
}
}
[Test]