+ // TODO(danvk): check relative positioning here: title on top, y left of y2.
+});
+
+// Check that a chart w/o a secondary y-axis will not get a y2label, even if one
+// is specified.
+it('testNoY2LabelWithoutSecondaryAxis', function() {
+ var g = new Dygraph(
+ document.getElementById("graph"),
+ getData(),
+ {
+ labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ],
+ width: 640,
+ height: 350,
+ xlabel: 'x-axis',
+ ylabel: 'y-axis',
+ y2label: 'y2-axis',
+ title: 'Chart title'
+ }
+ );
+
+ assert.deepEqual(["Chart title", "x-axis", "y-axis"],
+ Util.getClassTexts("dygraph-label"));
+ assert.deepEqual(["Chart title"], Util.getClassTexts("dygraph-title"));
+ assert.deepEqual(["x-axis"], Util.getClassTexts("dygraph-xlabel"));
+ assert.deepEqual(["y-axis"], Util.getClassTexts("dygraph-ylabel"));
+ assert.deepEqual([], Util.getClassTexts("dygraph-y2label"));
+});
+
+it('testValueRangePerAxisOptions', function() {
+ var data = getData();