summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-03-25 17:47:20 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-03-26 10:48:12 +0900
commit0a6d2e6b292b12f721002aa391f09ccbb18e29aa (patch)
tree91792c12f088b5df54c63f0afb42dac86a53a85e /src
parentb045feefb1d61e682322acfecd18469a64b3c1b4 (diff)
tests: Add case for filters' padding_set
Test that the padding is correct and the instruction is valid.
Diffstat (limited to 'src')
-rw-r--r--src/tests/evas/evas_test_filters.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tests/evas/evas_test_filters.c b/src/tests/evas/evas_test_filters.c
index 8500840..19d9271 100644
--- a/src/tests/evas/evas_test_filters.c
+++ b/src/tests/evas/evas_test_filters.c
@@ -118,6 +118,8 @@ START_TEST(evas_filter_parser)
118 CHKBAAD("blend(invalid=hello);"); 118 CHKBAAD("blend(invalid=hello);");
119 CHKBAAD("buffer:a(alpha);buffer:a(rgba);blend();"); 119 CHKBAAD("buffer:a(alpha);buffer:a(rgba);blend();");
120 CHKBAAD("buffer:a(alpha,src=partname);"); 120 CHKBAAD("buffer:a(alpha,src=partname);");
121 CHKGOOD("padding_set(0);blend();");
122 CHKGOOD("padding_set(l=1,r=2,t=3,b=4);blend();");
121 123
122 // Case sensitivity 124 // Case sensitivity
123 CHKGOOD("BLEND();"); 125 CHKGOOD("BLEND();");
@@ -302,7 +304,10 @@ static struct Filter_Test_Case _test_cases[] = {
302 { 0, 0, 0, 0, "buffer:m(src=rect);mask(m,fillmode=repeat_x_stretch_y);", "rect" }, 304 { 0, 0, 0, 0, "buffer:m(src=rect);mask(m,fillmode=repeat_x_stretch_y);", "rect" },
303 { 0, 0, 0, 0, "buffer:m(src=rect);mask(m,fillmode=repeat);", "rect" }, 305 { 0, 0, 0, 0, "buffer:m(src=rect);mask(m,fillmode=repeat);", "rect" },
304 { 0, 0, 0, 0, "buffer:m(src=rect);mask(m,fillmode=stretch);", "rect" }, 306 { 0, 0, 0, 0, "buffer:m(src=rect);mask(m,fillmode=stretch);", "rect" },
305 { 0, 0, 0, 0, "buffer:m(src=rect);buffer:b(rgba);blend(m,dst=b,fillmode=repeat_x_stretch_y);blend();", "rect" } 307 { 0, 0, 0, 0, "buffer:m(src=rect);buffer:b(rgba);blend(m,dst=b,fillmode=repeat_x_stretch_y);blend();", "rect" },
308
309 // Padding_set
310 { 11, 22, 33, 44, "padding_set(11,22,33,44);blend();"}
306}; 311};
307 312
308static const int _test_cases_count = sizeof(_test_cases) / sizeof(_test_cases[0]); 313static const int _test_cases_count = sizeof(_test_cases) / sizeof(_test_cases[0]);