On 10/27/12 5:02 AM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote:
> Back on 10.3, I did some adjustments: setting
> DEFAULT_NUM_COLOR_VARIANCES:int = 255 and the default value of
> ignoreMaxColorVariance to true in the CompareBitmap class, I've been able to
> reduce the number of failed tests to 1 (only
> text_long_property_Label_Spark.png doesn't pass and I can't get why because
> whatever the number of color variance I allowed, it always said they exeeded
> by 4).
>
> Well, anyway, it's not a solution, that's only to hide the failures, if we
> go anyway that way, what I'm not sure, we'll need to have a conditional
> compilation to say we're in a lower version of the player and the tests
> should be more tolerants.
>
Using ignoreMaxColorVariance is not a valid option as you say.
We could see if we can set maxColorVariances to a small number like 10.
Then the odds of missing a mistake is much lower.
We could try changing the swf version on every test that doesn't require it
to a lower number and re-create all the baseline images.
We could try to install a new system that compares certain display list
properties instead of the actual bitmap output. I've argued for years that
we should do that since really, that's all our code can control. What the
player does with the display list properties at render time is not in our
control. But it is sensitive to different kinds of changes in our code,
like changing the z-order of two things that do not overlap or have
transparency.
Explictly setting swf version might be the easiest to implement, and will
help expose where the SDK has dependencies on higher swf versions (if
anywhere).
--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui