var num_lines = 0;
for (var i = 0; i < proxy.calls__.length; i++) {
var call = proxy.calls__[i];
+
+ // note: Don't simplify these two conditionals into one. The
+ // separation simplifies debugging tricky tests.
if (call.name == "lineTo") {
if (call.properties.strokeStyle == color) {
num_lines++;
}
var g = new Dygraph(document.getElementById("graph"),
- [
- [1, 10, 10, 10],
- [2, 15, 11, 12],
- [3, null, null, 12],
- [4, 20, 14, null],
- [5, 15, null, 17],
- [6, 18, null, null],
- [7, 12, 14, null]
- ],
- {
- labels: ["Date","Series1","Series2","Series3"],
- connectSeparatedPoints: false,
- colors: ["#ff0000", "#00ff00", "#0000ff"]
- });
+ [
+ [1, 10, 10, 10],
+ [2, 15, 11, 12],
+ [3, null, null, 12],
+ [4, 20, 14, null],
+ [5, 15, null, 17],
+ [6, 18, null, null],
+ [7, 12, 14, null]
+ ],
+ {
+ labels: ["Date","Series1","Series2","Series3"],
+ connectSeparatedPoints: false,
+ colors: ["#ff0000", "#00ff00", "#0000ff"]
+ });
htx = g.hidden_ctx_;
assertExpectedLinesDrawnPerSeries(htx, 4, 1, 2);