summaryrefslogtreecommitdiff
path: root/src/tests/edje/data
diff options
context:
space:
mode:
authorDaniel Willmann <d.willmann@samsung.com>2013-06-27 17:53:48 +0100
committerDaniel Willmann <d.willmann@samsung.com>2013-06-28 14:25:30 +0100
commit7927c0f9fa742c6b57e97ce3ad348633db369844 (patch)
treeddb0509129db5a8aaa55b7cb78b9e5eb9bcf61d3 /src/tests/edje/data
parentdb29fbb2865e730f57a183f32a8095952e9372e8 (diff)
edje_test: Test geometry of a more complex layout
It seems someone thought it was fun to have rel2.offset behave differently than rel1.offset... A rel2.offset of 0 actually means the size is increased by one pixel. Acocunt for that in the tests. Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
Diffstat (limited to 'src/tests/edje/data')
-rw-r--r--src/tests/edje/data/complex_layout.edc97
1 files changed, 97 insertions, 0 deletions
diff --git a/src/tests/edje/data/complex_layout.edc b/src/tests/edje/data/complex_layout.edc
new file mode 100644
index 0000000000..656c7e3c61
--- /dev/null
+++ b/src/tests/edje/data/complex_layout.edc
@@ -0,0 +1,97 @@
1collections {
2 group {
3 name: "test_group";
4
5 parts {
6 part {
7 name: "background";
8 type: RECT;
9 mouse_events: 0;
10
11 description {
12 state: "default" 0.0;
13 color: 0 0 0 0;
14
15 rel1 {
16 relative: 0.0 0.0;
17 offset: 0 0;
18 }
19 rel2 {
20 relative: 1.0 1.0;
21 offset: -1 -1;
22 }
23 }
24 }
25 part {
26 name: "background2";
27 type: RECT;
28 mouse_events: 0;
29
30 description {
31 state: "default" 0.0;
32 color: 0 0 0 0;
33
34 rel1 {
35 relative: 0.0 0.0;
36 offset: 1 1;
37 }
38 rel2 {
39 relative: 1.0 1.0;
40 offset: 0 0;
41 }
42 }
43 }
44 part {
45 name: "ul";
46 type: RECT;
47
48 description {
49 state: "default" 0.0;
50
51 rel1 {
52 relative: 0.0 0.0;
53 offset: 5 5;
54 }
55 rel2 {
56 relative: 0.5 0.5;
57 offset: -2 -2;
58 }
59 }
60 }
61 part {
62 name: "ur";
63 type: RECT;
64
65 description {
66 state: "default" 0.0;
67
68 rel1 {
69 relative: 0.5 0.0;
70 offset: 2 5;
71 }
72 rel2 {
73 relative: 1.0 0.5;
74 offset: -5 -2;
75 }
76 }
77 }
78 part {
79 name: "l";
80 type: RECT;
81
82 description {
83 state: "default" 0.0;
84
85 rel1 {
86 relative: 0.0 0.5;
87 offset: 5 2;
88 }
89 rel2 {
90 relative: 1.0 1.0;
91 offset: -5 -5;
92 }
93 }
94 }
95 }
96 }
97}