summaryrefslogtreecommitdiff
path: root/src/tests/edje/data
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-09-07 19:08:50 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-10-01 20:10:54 +0900
commit35fe059ec8091a7635117abfddb5ed3f83e2101e (patch)
tree235d727d5e92dcf89298baf5ced90fbadfbfddee /src/tests/edje/data
parent6ac4f7154b7750b7c9765f74428e2ebcc83290d9 (diff)
Edje: Add test case for SNAPSHOT
This is mostly an edje_cc compilation test.
Diffstat (limited to 'src/tests/edje/data')
-rw-r--r--src/tests/edje/data/test_snapshot.edc61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/tests/edje/data/test_snapshot.edc b/src/tests/edje/data/test_snapshot.edc
new file mode 100644
index 0000000000..a68c6491e8
--- /dev/null
+++ b/src/tests/edje/data/test_snapshot.edc
@@ -0,0 +1,61 @@
1collections {
2 filters {
3 filter {
4 name: "filter";
5 script {
6 padding_set(0)
7 blur { 10 }
8 }
9 }
10 }
11 images {
12 // found in tests/emotion/data
13 image: "e_logo.png" COMP;
14 }
15 group { name: "test_group";
16 filters {
17 filter.file: "filter.lua";
18 }
19 parts {
20 part { name: "background";
21 type: RECT;
22 description { state: "default" 0.0;
23 color: 33 32 32 255;
24 rel1.relative: 0 0;
25 rel2.relative: 1 1;
26 max: 250 250;
27 }
28 }
29 image { "img";
30 desc { "default";
31 image.normal: "e_logo.png";
32 fill.type: TILE;
33 rel.to: "background";
34 }
35 }
36 part { name: "snap";
37 type: SNAPSHOT;
38 desc { "default";
39 rel.to: "background";
40 rel1.relative: 0.25 0.25;
41 rel2.relative: 0.75 0.75;
42 filter.code: "filter";
43 }
44 desc { "hid"; inherit: "default"; hid;
45 }
46 }
47 }
48 programs.program {
49 source: "*";
50 signal: "mouse,in";
51 action: STATE_SET "hid" 0.0;
52 targets: "snap";
53 }
54 programs.program {
55 source: "*";
56 signal: "mouse,out";
57 action: STATE_SET "default" 0.0;
58 targets: "snap";
59 }
60 }
61}