projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added test cases to verify that per series alphaFill is working properly
[dygraphs.git]
/
auto_tests
/
tests
/
pathological_cases.js
diff --git
a/auto_tests/tests/pathological_cases.js
b/auto_tests/tests/pathological_cases.js
index
40e877f
..
297167c
100644
(file)
--- a/
auto_tests/tests/pathological_cases.js
+++ b/
auto_tests/tests/pathological_cases.js
@@
-6,11
+6,15
@@
*/
describe("pathological-cases", function() {
*/
describe("pathological-cases", function() {
+var restoreConsole;
+var logs = {};
beforeEach(function() {
document.body.innerHTML = "<div id='graph'></div>";
beforeEach(function() {
document.body.innerHTML = "<div id='graph'></div>";
+ restoreConsole = Util.captureConsole(logs);
});
afterEach(function() {
});
afterEach(function() {
+ restoreConsole();
});
it('testZeroPoint', function() {
});
it('testZeroPoint', function() {
@@
-111,6
+115,16
@@
it('testCombinations', function() {
opts.labels = ['X', 'A', 'B', 'C'].slice(0, cols);
var g = new Dygraph(gdiv, data, opts);
opts.labels = ['X', 'A', 'B', 'C'].slice(0, cols);
var g = new Dygraph(gdiv, data, opts);
+
+ if (dataName == 'empty') {
+ assert.deepEqual(logs, {
+ log: [], warn: [],
+ error: ["Can't plot empty data set"]
+ });
+ logs.error = []; // reset
+ } else {
+ assert.deepEqual(logs, {log: [], warn: [], error: []});
+ }
}
}
}
}
}
}