The test paints a dashed Overlay::Line that runs far past both sides of the canvas through paint and checks that only the dashes near the canvas are drawn, all on the line.