| <!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> |
| <title>OffscreenCanvas test: 2d.strokeRect.globalalpha</title> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script src="/common/canvas-tests.js"></script> |
| <h1>2d.strokeRect.globalalpha</h1> |
| <p class="desc">strokeRect is affected by globalAlpha</p> |
| var t = async_test("strokeRect is affected by globalAlpha"); |
| var offscreenCanvas = new OffscreenCanvas(100, 50); |
| var ctx = offscreenCanvas.getContext('2d'); |
| ctx.strokeStyle = '#f00'; |
| ctx.strokeRect(25, 24, 50, 2); |
| _assertPixel(offscreenCanvas, 50,25, 0,0,0,0, "50,25", "0,0,0,0"); |