xy1 = xy2;
xy2 = g.toDomCoords(x1, y1base);
CanvasAssertions.assertLineDrawn(htx, xy1, xy2, attrs);
// The last edge can not be tested via assertLineDrawn since it wasn't drawn as a line but via clossePath.
// But a rectangle is completely tested with three of its four edges.
}
xy1 = xy2;
xy2 = g.toDomCoords(x1, y1base);
CanvasAssertions.assertLineDrawn(htx, xy1, xy2, attrs);
// The last edge can not be tested via assertLineDrawn since it wasn't drawn as a line but via clossePath.
// But a rectangle is completely tested with three of its four edges.
}