[wpt-sync] Sync PR 31822 - Unify template to create canvas and offscreencanvas tests
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox97 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
291.38 KB,
text/plain
|
Details |
Sync web-platform-tests PR 31822 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/31822
Details from upstream follow.
Yi Xu <yiyix@chromium.org> wrote:
Unify template to create canvas and offscreencanvas tests
The typical way to add tests for canvas and offscreencanvas is as
following:
- write the test in yaml/element (create the test for canvas)
- copy the the test to yaml/offscreencanvas
- add t.done() to the end of test (create the test for offscreencanvas)
This is because the API for canvas and offscreencanvas are mostly the
same.This cl updates templates and gentestutils to allow the framework of
generate canvas and offscreencanvas test from test.I removed both yaml/element/color_space.yaml and
yaml/offscreencanvas/color_space.yaml and add yaml_new/color_space.yaml.
Now the yaml_new/color_space.yaml genrates the same results as before.Note that you it's possible to add test for a particular canvas type
by using canvasType as keyword.Bug: 1275750
Change-Id: I6bf48ec3081f5fe3669bf585f92b39a712045c6b
Reviewed-on: https://chromium-review.googlesource.com/3307080
WPT-Export-Revision: b787da3f2cf779dcf3afe3ca437ab2401f8c2a13
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
Comment 4•4 years ago
|
||
bugherder |
Description
•