Index: third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.html b/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e40d78d06dfef7d6d4fc954ea85d8455ea7a86f4 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.html |
@@ -0,0 +1,28 @@ |
+<!DOCTYPE html> |
+<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> |
+<title>OffscreenCanvas test: 2d.strokeRect.zero.4</title> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<script src="/common/canvas-tests.js"></script> |
+ |
+<h1>2d.strokeRect.zero.4</h1> |
+<p class="desc">strokeRect of Nx0 pixels draws a closed line with no caps</p> |
+ |
+ |
+<script> |
+var t = async_test("strokeRect of Nx0 pixels draws a closed line with no caps"); |
+t.step(function() { |
+ |
+var offscreenCanvas = new OffscreenCanvas(100, 50); |
+var ctx = offscreenCanvas.getContext('2d'); |
+ |
+ctx.strokeStyle = '#f00'; |
+ctx.lineWidth = 250; |
+ctx.lineCap = 'round'; |
+ctx.strokeRect(100, 25, 100, 0); |
+_assertPixel(offscreenCanvas, 50,25, 0,0,0,0, "50,25", "0,0,0,0"); |
+ |
+t.done(); |
+ |
+}); |
+</script> |