+ var area = g.getArea();
+ assert.isTrue(area.w > 0);
+ assert.isTrue(area.h > 0);
+
+ // Regression test: check that graph remains visible after no-op resize.
+ g.resize();
+ var x = Math.floor(g.toDomXCoord(2));
+ var y = Math.floor(g.toDomYCoord(200));
+ assert.deepEqual([0, 128, 128, 255], Util.samplePixel(g.hidden_, x, y),
+ "Unexpected grid color found at pixel: x: " + x + " y: " + y);
+});
+
+});