- assertEquals(3, CanvasAssertions.numLinesDrawn(htx, '#0000ff'));
- CanvasAssertions.assertLineDrawn(htx, [56, 275], [161, 212],
- { strokeStyle: '#0000ff', });
- CanvasAssertions.assertLineDrawn(htx, [161, 212], [370, 87],
- { strokeStyle: '#0000ff', });
- CanvasAssertions.assertLineDrawn(htx, [370, 87], [475, 25],
- { strokeStyle: '#0000ff', });
-}
+ // TODO(danvk): figure out a good way to restore this test.
+ // assertEquals(29, CanvasAssertions.numLinesDrawn(htx, "#ff0000"));
+ g.destroy(); // to balance context saves and destroys.
+ CanvasAssertions.assertBalancedSaveRestore(htx);
+};