Closed Bug 1709581 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 28836 - Update OffscreenCanvas tests to respect [EnforceRange] idl annotation

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 28836 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/28836
Details from upstream follow.

b'Chris Lord <clord@igalia.com>' wrote:

Update OffscreenCanvas tests to respect [EnforceRange] idl annotation

At some point, getImageData and OffscreenCanvas width/height properties were updated to use [EnforceRange] (I guess this happened at the same time as the same changes in canvas) - this updates the tests to respect this. There are already range-related tests for getImageData, so 2d.imageData.get.tiny can just be removed, size.attributes.idl I've updated to check that the exceptions are thrown and that setting out of range values has no effect.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests and 1 subtests

Status Summary

Firefox

OK : 2
FAIL: 2

Chrome

OK : 2
PASS: 2

Safari

OK : 2
FAIL: 2

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.html
Getting/setting width/height IDL attributes: FAIL (Chrome: PASS, Safari: FAIL)
/html/canvas/offscreen/the-offscreen-canvas/size.attributes.idl.worker.html
Getting/setting width/height IDL attributes: FAIL (Chrome: PASS, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/99073645875d [wpt PR 28836] - Update OffscreenCanvas tests to respect [EnforceRange] idl annotation, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.