Changeset 276166 in webkit
- Timestamp:
- Apr 16, 2021, 1:55:48 PM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
platform/ios/TestExpectations (modified) (1 diff)
-
platform/mac-wk1/TestExpectations (modified) (1 diff)
-
svg/canvas/canvas-global-alpha-svg.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r276165 r276166 1 2021-04-16 Said Abou-Hallawa <said@apple.com> 2 3 [BigSur wk1] svg/canvas/canvas-global-alpha-svg.html is flakey failing 4 https://bugs.webkit.org/show_bug.cgi?id=221559 5 <rdar://problem/74104075> 6 7 Reviewed by Daniel Bates. 8 9 By default, aliasing is applied when drawing the SVGImage to the canvas 10 through CanvasRenderingContext2D::drawImage() and when drawing the canvas 11 itself to DOM container through ImageBuffer::draw(). Because the test 12 includes only rectangles, we need to make sure the edges of the SVG image 13 and the canvas in this test get pixelated. This will match the expected 14 page which uses DOM objects to mimic the SVG and canvas drawing 15 16 Make sure the test is ended only after the SVG image is fully loaded. 17 18 * platform/ios/TestExpectations: 19 * platform/mac-wk1/TestExpectations: 20 * svg/canvas/canvas-global-alpha-svg.html: 21 1 22 2021-04-16 Robert Jenner <jenner@apple.com> 2 23 -
trunk/LayoutTests/platform/ios/TestExpectations
r276127 r276166 1134 1134 # Difference of less 0.03% between images. 1135 1135 svg/as-image/svg-image-with-data-uri-from-canvas.html [ ImageOnlyFailure ] 1136 svg/canvas/canvas-global-alpha-svg.html [ ImageOnlyFailure ]1137 1136 svg/clip-path/clip-path-line-use-before-defined.svg [ ImageOnlyFailure ] 1138 1137 -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r275917 r276166 1257 1257 webkit.org/b/221506 [ BigSur ] svg/clip-path/resource-clipper-multiple-repaints.html [ Pass ImageOnlyFailure ] 1258 1258 1259 webkit.org/b/221559 [ BigSur ] svg/canvas/canvas-global-alpha-svg.html [ Pass ImageOnlyFailure ]1260 1261 1259 webkit.org/b/222493 [ BigSur ] platform/mac-bigsur/media/media-source/media-source-webm-vp8-malformed-header.html [ Skip ] 1262 1260 -
trunk/LayoutTests/svg/canvas/canvas-global-alpha-svg.html
r180511 r276166 1 1 <!DOCTYPE html> 2 2 <html> 3 <style> 4 canvas, svg { 5 image-rendering: pixelated; 6 } 7 </style> 3 8 <body> 4 9 <canvas id="canvas"></canvas> 5 <script> 10 <script> 11 if (window.testRunner) 12 testRunner.waitUntilDone(); 13 6 14 var canvas = document.getElementById("canvas"); 7 15 canvas.width = 150; … … 16 24 svgImage.onload = function() { 17 25 context.globalAlpha = 0.2; 18 context.drawImage(svgImage, 25, 25); 26 context.drawImage(svgImage, 25, 25); 27 if (window.testRunner) 28 testRunner.notifyDone(); 19 29 }; 20 30
Note:
See TracChangeset
for help on using the changeset viewer.