<!DOCTYPE html><!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. --><metacharset="UTF-8"><title>OffscreenCanvas test: 2d.path.arcTo.coincide.2</title><scriptsrc="/resources/testharness.js"></script><scriptsrc="/resources/testharnessreport.js"></script><scriptsrc="/html/canvas/resources/canvas-tests.js"></script><h1>2d.path.arcTo.coincide.2</h1><pclass="desc">arcTo() draws a straight line to P1 if P1 = P2</p><script>vart=async_test("arcTo() draws a straight line to P1 if P1 = P2");vart_pass=t.done.bind(t);vart_fail=t.step_func(function(reason){throwreason;});t.step(function(){varcanvas=newOffscreenCanvas(100,50);varctx=canvas.getContext('2d');ctx.fillStyle='#f00';ctx.fillRect(0,0,100,50);ctx.lineWidth=50;ctx.strokeStyle='#0f0';ctx.beginPath();ctx.moveTo(0,25);ctx.arcTo(100,25,100,25,1);ctx.stroke();_assertPixel(canvas,50,25,0,255,0,255);t.done();});</script>