| Index: third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/fill-and-stroke-styles/2d.gradient.interpolate.overlap.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/fill-and-stroke-styles/2d.gradient.interpolate.overlap.html b/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/fill-and-stroke-styles/2d.gradient.interpolate.overlap.html
|
| deleted file mode 100644
|
| index 945873eea69866c2390a5768926643f65b1140ad..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/fill-and-stroke-styles/2d.gradient.interpolate.overlap.html
|
| +++ /dev/null
|
| @@ -1,49 +0,0 @@
|
| -<!DOCTYPE html>
|
| -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
|
| -<title>OffscreenCanvas test: 2d.gradient.interpolate.overlap</title>
|
| -<script src="/resources/testharness.js"></script>
|
| -<script src="/resources/testharnessreport.js"></script>
|
| -<script src="/common/canvas-tests.js"></script>
|
| -
|
| -<h1>2d.gradient.interpolate.overlap</h1>
|
| -<p class="desc"></p>
|
| -
|
| -
|
| -<script>
|
| -var t = async_test("");
|
| -t.step(function() {
|
| -
|
| -var offscreenCanvas = new OffscreenCanvas(100, 50);
|
| -var ctx = offscreenCanvas.getContext('2d');
|
| -
|
| -offscreenCanvas.width = 200;
|
| -var g = ctx.createLinearGradient(0, 0, 200, 0);
|
| -g.addColorStop(0, '#f00');
|
| -g.addColorStop(0, '#ff0');
|
| -g.addColorStop(0.25, '#00f');
|
| -g.addColorStop(0.25, '#0f0');
|
| -g.addColorStop(0.25, '#0f0');
|
| -g.addColorStop(0.25, '#0f0');
|
| -g.addColorStop(0.25, '#ff0');
|
| -g.addColorStop(0.5, '#00f');
|
| -g.addColorStop(0.5, '#0f0');
|
| -g.addColorStop(0.75, '#00f');
|
| -g.addColorStop(0.75, '#f00');
|
| -g.addColorStop(0.75, '#ff0');
|
| -g.addColorStop(0.5, '#0f0');
|
| -g.addColorStop(0.5, '#0f0');
|
| -g.addColorStop(0.5, '#ff0');
|
| -g.addColorStop(1, '#00f');
|
| -ctx.fillStyle = g;
|
| -ctx.fillRect(0, 0, 200, 50);
|
| -_assertPixelApprox(offscreenCanvas, 49,25, 0,0,255,255, "49,25", "0,0,255,255", 16);
|
| -_assertPixelApprox(offscreenCanvas, 51,25, 255,255,0,255, "51,25", "255,255,0,255", 16);
|
| -_assertPixelApprox(offscreenCanvas, 99,25, 0,0,255,255, "99,25", "0,0,255,255", 16);
|
| -_assertPixelApprox(offscreenCanvas, 101,25, 255,255,0,255, "101,25", "255,255,0,255", 16);
|
| -_assertPixelApprox(offscreenCanvas, 149,25, 0,0,255,255, "149,25", "0,0,255,255", 16);
|
| -_assertPixelApprox(offscreenCanvas, 151,25, 255,255,0,255, "151,25", "255,255,0,255", 16);
|
| -
|
| -t.done();
|
| -
|
| -});
|
| -</script>
|
|
|