<!DOCTYPE html><!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. --><metacharset="UTF-8"><title>Canvas test: 2d.reset.state.line_dash</title><scriptsrc="/resources/testharness.js"></script><scriptsrc="/resources/testharnessreport.js"></script><scriptsrc="/html/canvas/resources/canvas-tests.js"></script><linkrel="stylesheet"href="/html/canvas/resources/canvas-tests.css"><bodyclass="show_output"><h1>2d.reset.state.line_dash</h1><pclass="desc">check that the line dash is reset</p><pclass="output">Actual output:</p><canvasid="c"class="output"width="100"height="50"><pclass="fallback">FAIL (fallback content)</p></canvas><ulid="d"></ul><script>vart=async_test("check that the line dash is reset");_addTest(function(canvas,ctx){ctx.setLineDash([1,2]);ctx.reset();_assert(ctx.getLineDash().length==0,"ctx.getLineDash().length == 0");});</script>