Closed Bug 1701459 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 28268 - Add options for adding ContextAttributes when calling getContext

Categories

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

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

b'Yi Xu <yiyix@chromium.org>' wrote:

Add options for adding ContextAttributes when calling getContext

Adding a new tag "attributes" in Canvas Template file, so that users
can do getContext('2d', attributes). I also added a test uses this
function in this cl.

Bug: 1178707

Change-Id: I020f7d83831391895b8b937e623f30f28dbcbc5f
Reviewed-on: https://chromium-review.googlesource.com/2788735
WPT-Export-Revision: 1a5b11bba6025df95ec565970418b6946fbef565

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Attached file Notable wpt changes
# CI Results

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

Total 2673 tests

## Status Summary

### Firefox
OK     : 500[Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-opt, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-linux1804-64-tsan-opt] 2660[GitHub]
PASS   : 524[Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-tsan-opt] 525[Gecko-linux1804-64-debug, Gecko-linux1804-64-opt, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt] 956[GitHub]
FAIL   : 80[Gecko-linux1804-64-debug, Gecko-linux1804-64-opt, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt] 81[Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-tsan-opt] 1903[GitHub]
TIMEOUT: 5
ERROR  : 4

### Chrome
OK     : 2661
PASS   : 2769
FAIL   : 95
ERROR  : 3

### Safari
OK     : 2658
PASS   : 965
FAIL   : 1893
TIMEOUT: 6
ERROR  : 5

## Links
[Gecko CI (Treeherder)](https://treeherder.mozilla.org/#/jobs?repo=try&revision=2bc8467edbdba98088a8c280e123c12f138285c5)
[GitHub PR Head](https://wpt.fyi/results/?sha=62d6f131d020e68448e13a118393c39941324960&label=pr_head)
[GitHub PR Base](https://wpt.fyi/results/?sha=62d6f131d020e68448e13a118393c39941324960&label=pr_base)

## Details

### Firefox-only Failures
/html/canvas/element/compositing/2d.composite.operation.clear.html
  Canvas test: 2d.composite.operation.clear: FAIL linked bug:Bug 1646754
/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.incomplete.reload.html
  Canvas test: 2d.drawImage.incomplete.reload: FAIL linked bug:Bug 1646754
/html/canvas/element/drawing-text-to-the-canvas/2d.text.measure.boundingBox.direction.html
  Measurement should follow text direction: FAIL linked bug:Bug 1700289
/html/canvas/element/drawing-text-to-the-canvas/2d.text.measure.fontBoundingBox.ahem.html
  Testing fontBoundingBox for font ahem: FAIL linked bug:Bug 1666598
/html/canvas/element/drawing-text-to-the-canvas/2d.text.measure.fontBoundingBox.html
  Testing fontBoundingBox: FAIL linked bug:Bug 1646754
/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.incomplete.reload.html
  Canvas test: 2d.pattern.image.incomplete.reload: FAIL linked bug:Bug 1646754
/html/canvas/element/manual/imagebitmap/createImageBitmap-drawImage.html
  createImageBitmap from an HTMLCanvasElement scaled down, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an HTMLCanvasElement scaled up, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an HTMLCanvasElement resized, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an HTMLVideoElement scaled down, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an HTMLVideoElement scaled up, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an HTMLVideoElement resized, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an HTMLVideoElement from a data URL scaled down, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an HTMLVideoElement from a data URL scaled up, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an HTMLVideoElement from a data URL resized, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a bitmap HTMLImageElement scaled down, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a bitmap HTMLImageElement scaled up, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a bitmap HTMLImageElement resized, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a vector HTMLImageElement scaled down, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a vector HTMLImageElement scaled up, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a vector HTMLImageElement resized, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an ImageData scaled down, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an ImageData scaled up, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an ImageData resized, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an ImageBitmap scaled down, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an ImageBitmap scaled up, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an ImageBitmap resized, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a Blob scaled down, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a Blob scaled up, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a Blob resized, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a Blob with negative sw/sh, and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
/html/canvas/element/manual/imagebitmap/createImageBitmap-flipY.html
  createImageBitmap from an HTMLCanvasElement imageOrientation: "none", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an HTMLCanvasElement imageOrientation: "flipY", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an HTMLVideoElement imageOrientation: "none", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an HTMLVideoElement imageOrientation: "flipY", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an HTMLVideoElement from a data URL imageOrientation: "none", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an HTMLVideoElement from a data URL imageOrientation: "flipY", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a bitmap HTMLImageElement imageOrientation: "none", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a bitmap HTMLImageElement imageOrientation: "flipY", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a vector HTMLImageElement imageOrientation: "none", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an ImageData imageOrientation: "none", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an ImageData imageOrientation: "flipY", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an ImageBitmap imageOrientation: "none", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from an ImageBitmap imageOrientation: "flipY", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a Blob imageOrientation: "none", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
  createImageBitmap from a Blob imageOrientation: "flipY", and drawImage on the created ImageBitmap: FAIL linked bug:Bug 1691665
/html/canvas/element/text-styles/2d.text.font.parse.complex.html
  Canvas test: 2d.text.font.parse.complex: FAIL linked bug:Bug 1646754
/html/canvas/element/text-styles/2d.text.font.parse.invalid.html
  Canvas test: 2d.text.font.parse.invalid: FAIL linked bug:Bug 1691665
/html/canvas/element/text-styles/2d.text.font.parse.size.percentage.default.html
  Canvas test: 2d.text.font.parse.size.percentage.default: FAIL linked bug:Bug 1646754
/html/canvas/element/text-styles/2d.text.font.parse.size.percentage.html
  Canvas test: 2d.text.font.parse.size.percentage: FAIL linked bug:Bug 1646754
/html/canvas/element/text-styles/2d.text.font.parse.system.html
  System fonts must be computed to explicit values: FAIL linked bug:Bug 1646754
/html/canvas/element/text-styles/2d.text.font.relative_size.html
  Canvas test: 2d.text.font.relative_size: FAIL linked bug:Bug 1646754

(See attachment for full changes)
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/64e970eaf3da
[wpt PR 28268] - Add options for adding ContextAttributes when calling getContext, a=testonly
https://hg.mozilla.org/integration/autoland/rev/5218f08cdeba
[wpt PR 28268] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: