Improvements to screen captures for reftests

3 views
Skip to first unread message

Frédéric WANG

unread,
Feb 21, 2012, 5:51:11 AM2/21/12
to mathj...@googlegroups.com
Davide,

I've looked into the problem of reftest screenshots. Now, my Python
script adds a white background instead of black background when I resize
the images to 800x1000 (size of reftest images). However, it turns out
that in the case of Internet Explorer with Selenium 2, the black
background is added by the Internet Explorer Driver itself. I
workarounded this by extracting the "bounding box" of the non-black
regions in the image. However, I have to update some tests to ensure
that this workaround works with all pages. For example, I have to use
red rectangles instead of black rectangles in
Configuration/Hub/displayAlign/displayAlign-* (see the attachment to
understand what I mean).

--
Fr�d�ric Wang
maths-informatique-jeux.com/blog/frederic

Windows_MSIE_Quirks_STIX_HTML-CSS.html

Frédéric WANG

unread,
Feb 21, 2012, 5:54:35 AM2/21/12
to mathj...@googlegroups.com
It seems that the attachment hides my message in Thunderbird so I send
it again:

Davide P. Cervone

unread,
Feb 21, 2012, 10:41:00 AM2/21/12
to mathj...@googlegroups.com
This sounds like a good approach, though I'm sorry you will have to
adjust some tests to make it work in all cases. Sorry for the extra
efforts you have to make.

Davide

> Frédéric Wang
> maths-informatique-jeux.com/blog/frederic
>
> <Windows_MSIE_Quirks_STIX_HTML-CSS.html>

Reply all
Reply to author
Forward
0 new messages