| Index: third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/drawing-rectangles-to-the-canvas/2d.clearRect.path.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/drawing-rectangles-to-the-canvas/2d.clearRect.path.html b/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/drawing-rectangles-to-the-canvas/2d.clearRect.path.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..00d2286fb56597042b7e457d1f2aee60b1b1e1db
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/drawing-rectangles-to-the-canvas/2d.clearRect.path.html
|
| @@ -0,0 +1,29 @@
|
| +<!DOCTYPE html>
|
| +<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
|
| +<title>OffscreenCanvas test: 2d.clearRect.path</title>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +<script src="/common/canvas-tests.js"></script>
|
| +
|
| +<h1>2d.clearRect.path</h1>
|
| +<p class="desc">clearRect does not affect the current path</p>
|
| +
|
| +
|
| +<script>
|
| +var t = async_test("clearRect does not affect the current path");
|
| +t.step(function() {
|
| +
|
| +var offscreenCanvas = new OffscreenCanvas(100, 50);
|
| +var ctx = offscreenCanvas.getContext('2d');
|
| +
|
| +ctx.fillStyle = '#0f0';
|
| +ctx.beginPath();
|
| +ctx.rect(0, 0, 100, 50);
|
| +ctx.clearRect(0, 0, 16, 16);
|
| +ctx.fill();
|
| +_assertPixel(offscreenCanvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255");
|
| +
|
| +t.done();
|
| +
|
| +});
|
| +</script>
|
|
|