Fake Canvas + WebGL Layer: Canvas2D, WebGL1, WebGL2 contexts #8
Labels
No labels
bug
docs
feature
housekeeping
html-spec
performance
react-compat
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
glow-all/true-headless-browser#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Implement fake Canvas2D, WebGL1, and WebGL2 contexts. All methods exist, return plausible values, do nothing.
What to Build
src/fakes/canvas.ts
FakeCanvas2DContext
FakeWebGLRenderingContext
Installation
Tests
Unit Tests
Edge Cases
Definition of Done
Fake Canvas + WebGL Layer: Canvas2D, WebGL1, WebGL2 contexts. ✅ Implementiert in src/fakes/. Tests: canvas.test.ts (120+ Tests).