Today I was debugging a patch in Firefox which was regressing a lot of
the richtext2 tests. I was trying to reduce the failure to a single
test case, but no matter what I did, I couldn't reproduce the bug in
my own testcase. After a bit of debugging, I figured out the main
difference: the bug only occurred if the editable element was not
focused. The richtext2 suite runs all of its tests without focusing
the editable elements. Seeing this behavior made me think that it
probably makes sense to repeat each test once again with the editable
element focused too, in case a bug in a browser causes the behavior in
those two cases to be different.
What do you guys think?
Cheers,
--
Ehsan
<http://ehsanakhgari.org/>
As somebody who needs to go through the list of all results and look
at many of them individually, I certainly sympathize with your
concern. :-) But honestly I think there is so much broken here that
doing any number of additional tests is definitely worth it.
Specifically, bugs that depend on the focus status will show up to web
developers as things which seemingly randomly break (since the
distinction of selection and focus is not very intuitive to many web
developers).
On how to best report the scores, it kind of depends on who the
audience is, I think. For me, the current detailed reporting is
ideal. For regular users, I'm not sure if they need anything beyond a
"X of Y tests passed" measure.
What do you think?
--
Ehsan
<http://ehsanakhgari.org/>
That sounds great, I appreciate your help! :-)
And don't worry about keeping things stable, I can easily change our
unit test integration code.
--
Ehsan
<http://ehsanakhgari.org/>
if (focused) {
container.editor.focus();
} else {
window.focus();
window.blur();
}