| Index: third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/the-offscreen-canvas/initial.reset.same.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/the-offscreen-canvas/initial.reset.same.html b/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/the-offscreen-canvas/initial.reset.same.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0a2edf4b6d77e03aae3f9285c4a745010de33379
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/the-offscreen-canvas/initial.reset.same.html
|
| @@ -0,0 +1,29 @@
|
| +<!DOCTYPE html>
|
| +<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
|
| +<title>OffscreenCanvas test: initial.reset.same</title>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +<script src="/common/canvas-tests.js"></script>
|
| +
|
| +<h1>initial.reset.same</h1>
|
| +<p class="desc">Setting size (not changing the value) resets canvas to transparent black</p>
|
| +
|
| +
|
| +<script>
|
| +var t = async_test("Setting size (not changing the value) resets canvas to transparent black");
|
| +t.step(function() {
|
| +
|
| +var offscreenCanvas = new OffscreenCanvas(100, 50);
|
| +var ctx = offscreenCanvas.getContext('2d');
|
| +
|
| +offscreenCanvas.width = 100;
|
| +ctx.fillStyle = '#f00';
|
| +ctx.fillRect(0, 0, 50, 50);
|
| +_assertPixel(offscreenCanvas, 20,20, 255,0,0,255, "20,20", "255,0,0,255");
|
| +offscreenCanvas.width = 100;
|
| +_assertPixel(offscreenCanvas, 20,20, 0,0,0,0, "20,20", "0,0,0,0");
|
| +
|
| +t.done();
|
| +
|
| +});
|
| +</script>
|
|
|