[longomatch] Test cameras visibility validation with and without opened MFS.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Test cameras visibility validation with and without opened MFS.
- Date: Tue, 31 Mar 2015 17:37:41 +0000 (UTC)
commit 00137db2d65080bba744bf8048bda8261f7544a7
Author: Julien Moutte <julien fluendo com>
Date: Sat Mar 28 23:25:34 2015 +0100
Test cameras visibility validation with and without opened MFS.
Tests/Services/TestPlayerController.cs | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/Tests/Services/TestPlayerController.cs b/Tests/Services/TestPlayerController.cs
index 307dfd6..40a599e 100644
--- a/Tests/Services/TestPlayerController.cs
+++ b/Tests/Services/TestPlayerController.cs
@@ -571,14 +571,20 @@ namespace Tests.Services
CamerasVisible = new List<int> { 0, 1, 4, 6 }
};
- player.CamerasVisible = new List<int> { 0, 1 };
+ player.CamerasVisible = new List<int> { 1, 0 };
player.WindowHandles = new List<IntPtr> { IntPtr.Zero, IntPtr.Zero };
player.Ready ();
player.LoadEvent (mfs, evt2, evt2.Start, true);
+ // Only valid cameras should be visible although no fileset was opened.
+ Assert.AreEqual (2, player.CamerasVisible.Count);
+ Assert.AreEqual (0, player.CamerasVisible [0]);
+ Assert.AreEqual (1, player.CamerasVisible [1]);
+ // Again now that the fileset is opened
+ player.LoadEvent (mfs, evt2, evt2.Start, true);
// Only valid cameras should be visible
- Assert.AreEqual (player.CamerasVisible.Count, 2);
- Assert.AreEqual (player.CamerasVisible [0], 0);
- Assert.AreEqual (player.CamerasVisible [1], 1);
+ Assert.AreEqual (2, player.CamerasVisible.Count);
+ Assert.AreEqual (0, player.CamerasVisible [0]);
+ Assert.AreEqual (1, player.CamerasVisible [1]);
}
[Test ()]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]