summaryrefslogtreecommitdiff
path: root/src/tests/edje
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-08-18 21:37:42 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-10-01 20:10:54 +0900
commit6b7e4087d2eec005f9f5e1dc20b54d525700a7df (patch)
tree8968a9d5adb98cbce9f01f44de70d8bdde230dd2 /src/tests/edje
parenta181c32cbe03562c148cf31465317df365f9111d (diff)
Edje tests: Add PROXY part to the filters test case
Only compilation is tested here. Use edje_player to check the resulting edj if you wanna see what happens.
Diffstat (limited to 'src/tests/edje')
-rw-r--r--src/tests/edje/data/test_filters.edc46
1 files changed, 41 insertions, 5 deletions
diff --git a/src/tests/edje/data/test_filters.edc b/src/tests/edje/data/test_filters.edc
index 6b3b5e6eea..e1f8b579ba 100644
--- a/src/tests/edje/data/test_filters.edc
+++ b/src/tests/edje/data/test_filters.edc
@@ -29,7 +29,9 @@ collections {
29 filter { 29 filter {
30 name: "filter3"; 30 name: "filter3";
31 script { 31 script {
32 blend {} 32 if not a then a = 255 end
33 fill { color = (color('lime') * a) }
34 blend { color = (color('red') * a) }
33 } 35 }
34 } 36 }
35 } 37 }
@@ -53,7 +55,7 @@ collections {
53 } 55 }
54 part { name: "mask"; 56 part { name: "mask";
55 type: IMAGE; 57 type: IMAGE;
56 no_render: 1; 58 no_render: 1;
57 description { state: "default" 0.0; 59 description { state: "default" 0.0;
58 rel1.relative: 0 0; 60 rel1.relative: 0 0;
59 rel2.relative: 1 1; 61 rel2.relative: 1 1;
@@ -62,9 +64,43 @@ collections {
62 image.normal: "pnl.png"; 64 image.normal: "pnl.png";
63 } 65 }
64 } 66 }
65 part { name: "text"; 67 proxy { "prxy";
68 desc { "default";
69 filter {
70 code: "filter3";
71 data: "a" "96";
72 }
73 max: 64 -1;
74 align: 1 0.5;
75 source: "mask";
76 fill {
77 type: TILE;
78 origin {
79 relative: 0 0;
80 offset: 0 0;
81 }
82 size {
83 relative: 1 1;
84 offset: -1 -1;
85 }
86 }
87 }
88 }
89 image {
90 "img";
91 desc {
92 "default";
93 image.normal: "pnl.png";
94 max: 64 -1;
95 align: 0 0.5;
96 filter.code: "filter3";
97 }
98 }
99 part {
100 name: "text";
66 type: TEXT; 101 type: TEXT;
67 description { state: "default" 0.0; 102 description {
103 state: "default" 0.0;
68 rel1.relative: 0 0; 104 rel1.relative: 0 0;
69 rel2.relative: 1 1; 105 rel2.relative: 1 1;
70 rel1.to: "background"; 106 rel1.to: "background";
@@ -78,7 +114,7 @@ collections {
78 filter { 114 filter {
79 code: "filterfile"; 115 code: "filterfile";
80 source: "mask"; 116 source: "mask";
81 data: "mycolor" "#f0f8"; 117 data: "mycolor" "#f0f8";
82 data: "cc" "color_class('cc1')"; 118 data: "cc" "color_class('cc1')";
83 } 119 }
84 color: 255 80 0 200; 120 color: 255 80 0 200;