diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2015-06-18 19:15:16 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2015-06-25 14:36:09 +0900 |
commit | 351090f95de447c0d820bb02eb40889ab78b0736 (patch) | |
tree | 1099ac8f78e0d60fccef1b93ea40f0aef0b3843c | |
parent | 64fd278c62e3286c453885216d2d0c86a01ce9fc (diff) |
Evas tests: Fix failing test due to API change
The new Lua color function is more lax than before, and
invalid color names will default to black without failing.
-rw-r--r-- | src/tests/evas/evas_test_filters.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_filters.c b/src/tests/evas/evas_test_filters.c index 0b72d7c77d..ac40d0517d 100644 --- a/src/tests/evas/evas_test_filters.c +++ b/src/tests/evas/evas_test_filters.c | |||
@@ -183,12 +183,15 @@ START_TEST(evas_filter_parser) | |||
183 | "White" | 183 | "White" |
184 | }; | 184 | }; |
185 | 185 | ||
186 | #if 0 | ||
187 | // New color class defaults to black | ||
186 | static const char *colors_bad[] = { | 188 | static const char *colors_bad[] = { |
187 | "newcolor", | 189 | "newcolor", |
188 | "ABC", | 190 | "ABC", |
189 | "#ZZZ", | 191 | "#ZZZ", |
190 | "#-10" | 192 | "#-10" |
191 | }; | 193 | }; |
194 | #endif | ||
192 | 195 | ||
193 | for (size_t c = 0; c < sizeof(colors) / sizeof(colors[0]); c++) | 196 | for (size_t c = 0; c < sizeof(colors) / sizeof(colors[0]); c++) |
194 | { | 197 | { |
@@ -197,6 +200,7 @@ START_TEST(evas_filter_parser) | |||
197 | CHKGOOD(buf); | 200 | CHKGOOD(buf); |
198 | } | 201 | } |
199 | 202 | ||
203 | #if 0 | ||
200 | fprintf(stderr, "Evas filters tests: start invalid cases. Ignore the following ERRs.\n"); | 204 | fprintf(stderr, "Evas filters tests: start invalid cases. Ignore the following ERRs.\n"); |
201 | for (size_t c = 0; c < sizeof(colors_bad) / sizeof(colors_bad[0]); c++) | 205 | for (size_t c = 0; c < sizeof(colors_bad) / sizeof(colors_bad[0]); c++) |
202 | { | 206 | { |
@@ -205,6 +209,7 @@ START_TEST(evas_filter_parser) | |||
205 | CHKBAAD(buf); | 209 | CHKBAAD(buf); |
206 | } | 210 | } |
207 | fprintf(stderr, "Evas filters tests: end of invalid cases.\n"); | 211 | fprintf(stderr, "Evas filters tests: end of invalid cases.\n"); |
212 | #endif | ||
208 | 213 | ||
209 | // fillmodes are parsed when converting from instructions to commands | 214 | // fillmodes are parsed when converting from instructions to commands |
210 | } | 215 | } |