+ xy1 = xy2;
+ xy2 = g.toDomCoords(x2, y1_bottom);
+ CanvasAssertions.assertLineDrawn(htx, xy1, xy2, attrs);
+ xy1 = xy2;
+ xy2 = g.toDomCoords(x1, y1_bottom);
+ 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.