Closed Bug 528094 Opened 15 years ago Closed 13 years ago

Canvas needs a suitable mock object

Categories

(Skywriter Graveyard :: General, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: pcwalton, Unassigned)

References

Details

We should have some sort of mock object for canvas contexts, for unit tests. At the very least it should make sure that save() and restore() are properly bracketed and that the state stack is clear at the end: I've lost lots of time to this one. Other possibilities include warning when lots of off-canvas drawing is occurring, to suggest optimization, perhaps?
Depends on: 548655
Assignee: pwalton → nobody
Status: ASSIGNED → NEW
ACE doesn't use canvas, so this is now obsolete.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.