summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2020-01-28 17:33:42 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-08 11:01:21 +0100
commit8b25bc41b33cf366ef068b04cc3de55b76310891 (patch)
tree71e200b38e3d4be9cd21057e1103346880761f48
parent645c3d41ebd4b446c45e17a60fddf60302481bcc (diff)
downloadefl-8b25bc41b33cf366ef068b04cc3de55b76310891.tar.gz
mono-tests: Fix build after DnD changes
The test struct used to check mono bindings struct pack/unpack is no longer available. Used a different one, and checked the same things. Reviewed-by: João Paulo Taylor Ienczak Zanette <joao.tiz@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D11219
-rw-r--r--src/tests/efl_mono/Structs.cs17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/tests/efl_mono/Structs.cs b/src/tests/efl_mono/Structs.cs
index 151bc8388d..334057c907 100644
--- a/src/tests/efl_mono/Structs.cs
+++ b/src/tests/efl_mono/Structs.cs
@@ -499,15 +499,14 @@ internal class TestStructTuples
#if EFL_BETA
public static void test_complex_fields_assign_conversion() {
var pos = new Eina.Position2D(1, 2);
- var action = Efl.Ui.SelectionAction.Unknown;
- var format = Efl.Ui.SelectionFormat.None;
- var item = null as Efl.Canvas.Vg.Object;
-
- Efl.Dnd.DragPos attr = (pos, action, format, item);
- Test.AssertEquals(attr.Pos, pos);
- Test.AssertEquals(attr.Action, action);
- Test.AssertEquals(attr.Format, format);
- Test.AssertEquals(attr.Item, item);
+ uint seat = 3;
+ var types = new System.String[] {"text", "markup"};
+
+ Efl.Ui.DropEvent attr = (pos, seat, types);
+ Test.AssertEquals(attr.Position, pos);
+ Test.AssertEquals(attr.Seat, seat);
+ Test.AssertEquals(attr.AvailableTypes.ElementAt(0), types[0]);
+ Test.AssertEquals(attr.AvailableTypes.ElementAt(1), types[1]);
}
#endif
}