summaryrefslogtreecommitdiff
path: root/src/tests/edje/data
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-06-23 12:38:32 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-06-25 14:36:09 +0900
commit6ca1ce305bc9043561f040d52c85dd2781aaec4d (patch)
treed96ff3f45dbbc328cf05b1e6d5ab3f8422be2597 /src/tests/edje/data
parent15afea293ffeeba7a7157b6663e0fdeb28c15e61 (diff)
Edje tests: Add test case for embedded text filters
Diffstat (limited to 'src/tests/edje/data')
-rw-r--r--src/tests/edje/data/filter.lua14
-rw-r--r--src/tests/edje/data/test_filters.edc62
2 files changed, 76 insertions, 0 deletions
diff --git a/src/tests/edje/data/filter.lua b/src/tests/edje/data/filter.lua
new file mode 100644
index 0000000000..2ada51bdea
--- /dev/null
+++ b/src/tests/edje/data/filter.lua
@@ -0,0 +1,14 @@
1-- Evas filter program
2
3a = buffer { 'alpha' }
4b = buffer { src = 'mask' }
5
6padding_set(10)
7
8grow { 5, dst = a }
9blur { 6, src = a, color = state.color, ox = 1, oy = 1 }
10blur { 2, color = color({cc.r, cc.g, cc.b, cc.a }) }
11blend { color = mycolor, ox = 1, oy = 1 }
12
13mask { src = input, mask = b, color = 'cyan', fillmode = 'stretch_y_repeat_x' }
14
diff --git a/src/tests/edje/data/test_filters.edc b/src/tests/edje/data/test_filters.edc
new file mode 100644
index 0000000000..df84c48885
--- /dev/null
+++ b/src/tests/edje/data/test_filters.edc
@@ -0,0 +1,62 @@
1data {
2 file: "filterfile" "filter.lua";
3}
4color_classes {
5 color_class {
6 name: "cc1";
7 color: 0 0 255 255;
8 color2: 0 255 255 255;
9 color3: 0 0 255 255;
10 }
11}
12collections {
13 images {
14 // found in tests/emotion/data
15 image: "pnl.png" COMP;
16 }
17 group { name: "test_group";
18 parts {
19 part { name: "background";
20 type: RECT;
21 description { state: "default" 0.0;
22 color: 33 32 32 255;
23 rel1.relative: 0 0;
24 rel2.relative: 1 1;
25 max: 200 200;
26 }
27 }
28 part { name: "mask";
29 type: IMAGE;
30 no_render: 1;
31 description { state: "default" 0.0;
32 rel1.relative: 0 0;
33 rel2.relative: 1 1;
34 rel.to: "text";
35 max: 999 50;
36 image.normal: "pnl.png";
37 }
38 }
39 part { name: "text";
40 type: TEXT;
41 description { state: "default" 0.0;
42 rel1.relative: 0 0;
43 rel2.relative: 1 1;
44 rel1.to: "background";
45 rel2.to: "background";
46 text {
47 text: "FILTER";
48 font: "Sans";
49 size: 48;
50 }
51 filter {
52 code: "filterfile";
53 source: "mask";
54 data: "mycolor" "#f0f8";
55 data: "cc" "color_class('cc1')";
56 }
57 color: 255 80 0 200;
58 }
59 }
60 }
61 }
62}