Closed Bug 400925 Opened 17 years ago Closed 15 years ago

Reftests for live changes to gradients and patterns

Categories

(Core :: SVG, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: jruderman, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch to add reftests (obsolete) — Splinter Review
These reftests are intended as tests for bug 276316, bug 309924, bug 308589, bug 327764, and bug 372574.

I couldn't get them to fail by reverting the patches for bug 309924 or bug 327764, though, which is strange.  I even tried using reftest-wait instead of direct onload.  Could the problem be that the bugs are painting bugs and reftest's forced painting hides them?
Attachment #285970 - Flags: review?(tor)
(In reply to comment #0)
> I couldn't get them to fail by reverting the patches for bug 309924 or bug
> 327764, though, which is strange.  I even tried using reftest-wait instead of
> direct onload.  Could the problem be that the bugs are painting bugs and
> reftest's forced painting hides them?

Those bugs came about because we weren't invalidating the area to repaint, so a forced paint would indeed probably hide them.
Should I add these as reftests anyway?  Will a future version of reftest will be able to catch painting-invalidation bugs?
I can't speak for the future features of the reftest framework, but having tests for various invalidations would be useful.  I don't think the onload approach used in these tests is the way to go, since that will probably get executed before the first paint.
Assignee: jruderman → nobody
Depends on: compositor
Depends on: 451332
Attachment #285970 - Flags: review?(tor)
Flags: in-testsuite?
Attached patch updated reftestsSplinter Review
Updated Jesse's original reftests with the new MozReftestInvalidate event; see http://weblogs.mozillazine.org/roc/archives/2009/01/invalidation_re.html.
Attachment #285970 - Attachment is obsolete: true
Attachment #384917 - Flags: review?
Attachment #384917 - Flags: review? → review?(jruderman)
Attachment #384917 - Flags: review?(jruderman)
Comment on attachment 384917 [details] [diff] [review]
updated reftests

Please request review from dbaron or roc, since I don't know the subtleties of MozReftestInvalidate.
Attachment #384917 - Flags: review?(roc)
There are no real subtleties. You just set reftest-wait on the root element, listen for the MozReftestInvalidate with document.addEventListener("MozReftestInvalidate", doTest, false), and in doTest do your dynamic changes and then remove reftest-wait.
Attachment #384917 - Attachment description: updated reftests with new MozReftestInvalidate event → updated reftests (checkin-needed to 1.9.1 and trunk)
http://hg.mozilla.org/mozilla-central/rev/d4bd5186451e
Status: NEW → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Attachment #384917 - Attachment description: updated reftests (checkin-needed to 1.9.1 and trunk) → updated reftests
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: