summaryrefslogtreecommitdiff
path: root/src/tests/edje/data
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-06-11 17:46:50 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-06-15 16:59:41 +0900
commitf24b45a7d0e22689b321ab15276b9275b2309325 (patch)
tree6f78ebc6196efbb031abe362a772e23dc9357646 /src/tests/edje/data
parent111e51a6ff35c3bf4dc835775b44b630e0191ba1 (diff)
Edje: Add test case for "no_render" and "clip_to" state flag
Diffstat (limited to 'src/tests/edje/data')
-rw-r--r--src/tests/edje/data/test_masking.edc82
1 files changed, 82 insertions, 0 deletions
diff --git a/src/tests/edje/data/test_masking.edc b/src/tests/edje/data/test_masking.edc
new file mode 100644
index 0000000000..63938d9d8e
--- /dev/null
+++ b/src/tests/edje/data/test_masking.edc
@@ -0,0 +1,82 @@
1collections {
2 images {
3 // found in tests/emotion/data
4 image: "e_logo.png" COMP;
5 }
6 group { name: "test_group";
7 parts {
8 part { name: "background";
9 type: RECT;
10 description { state: "default" 0.0;
11 color: 33 32 32 255;
12 rel1.relative: 0 0;
13 rel2.relative: 1 1;
14 max: 200 200;
15 }
16 }
17 part { name: "clip1";
18 type: RECT;
19 no_render: 1;
20 description { state: "default" 0.0;
21 rel1.relative: 0 0;
22 rel2.relative: 1 1;
23 }
24 }
25 part { name: "clip2";
26 type: RECT;
27 no_render: 1;
28 description { state: "default" 0.0;
29 rel1.relative: 0 0;
30 rel2.relative: 1 1;
31 }
32 }
33 part { name: "mask";
34 type: IMAGE;
35 no_render: 1;
36 description { state: "default" 0.0;
37 rel1.relative: 0 0;
38 rel2.relative: 1 1;
39 rel1.to: "background";
40 rel2.to: "background";
41 image.normal: "e_logo.png";
42 }
43 }
44 part { name: "logo";
45 inherit: "mask";
46 type: IMAGE;
47 no_render: 0;
48 }
49 part { name: "text";
50 inherit: "mask";
51 type: TEXT;
52 description { state: "default" 0.0;
53 text {
54 text: "HELLO WORLD";
55 font: "Sans";
56 size: 16;
57 }
58 color: 255 0 0 255;
59 clip_to: "mask";
60 }
61 }
62 /* test clip_to override from desc */
63 part { name: "noclip";
64 type: TEXT;
65 clip_to: "clip1";
66 description { state: "default" 0.0;
67 text {
68 text: "HELLO WORLD";
69 font: "Sans";
70 size: 16;
71 }
72 rel1.relative: 0 0;
73 rel2.relative: 1 1;
74 rel1.to: "background";
75 rel2.to: "background";
76 color: 0 255 0 64;
77 clip_to: "clip2";
78 }
79 }
80 }
81 }
82}