forked from enlightenment/efl
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.
This commit is contained in:
parent
64fd278c62
commit
351090f95d
|
@ -183,12 +183,15 @@ START_TEST(evas_filter_parser)
|
||||||
"White"
|
"White"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// New color class defaults to black
|
||||||
static const char *colors_bad[] = {
|
static const char *colors_bad[] = {
|
||||||
"newcolor",
|
"newcolor",
|
||||||
"ABC",
|
"ABC",
|
||||||
"#ZZZ",
|
"#ZZZ",
|
||||||
"#-10"
|
"#-10"
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
for (size_t c = 0; c < sizeof(colors) / sizeof(colors[0]); c++)
|
for (size_t c = 0; c < sizeof(colors) / sizeof(colors[0]); c++)
|
||||||
{
|
{
|
||||||
|
@ -197,6 +200,7 @@ START_TEST(evas_filter_parser)
|
||||||
CHKGOOD(buf);
|
CHKGOOD(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
fprintf(stderr, "Evas filters tests: start invalid cases. Ignore the following ERRs.\n");
|
fprintf(stderr, "Evas filters tests: start invalid cases. Ignore the following ERRs.\n");
|
||||||
for (size_t c = 0; c < sizeof(colors_bad) / sizeof(colors_bad[0]); c++)
|
for (size_t c = 0; c < sizeof(colors_bad) / sizeof(colors_bad[0]); c++)
|
||||||
{
|
{
|
||||||
|
@ -205,6 +209,7 @@ START_TEST(evas_filter_parser)
|
||||||
CHKBAAD(buf);
|
CHKBAAD(buf);
|
||||||
}
|
}
|
||||||
fprintf(stderr, "Evas filters tests: end of invalid cases.\n");
|
fprintf(stderr, "Evas filters tests: end of invalid cases.\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
// fillmodes are parsed when converting from instructions to commands
|
// fillmodes are parsed when converting from instructions to commands
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue