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
/
range_selector.js
diff --git
a/auto_tests/tests/range_selector.js
b/auto_tests/tests/range_selector.js
index
a8b9459
..
584e054
100644
(file)
--- a/
auto_tests/tests/range_selector.js
+++ b/
auto_tests/tests/range_selector.js
@@
-6,11
+6,15
@@
*/
describe("range-selector", function() {
*/
describe("range-selector", 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('testRangeSelector', function() {
});
it('testRangeSelector', function() {
@@
-216,6
+220,10
@@
it('testRangeSelectorWithAnimatedZoomsOption', function() {
var g = new Dygraph(graph, data, opts);
assertGraphExistence(g, graph);
assert.isFalse(g.getOption('animatedZooms'));
var g = new Dygraph(graph, data, opts);
assertGraphExistence(g, graph);
assert.isFalse(g.getOption('animatedZooms'));
+ assert.deepEqual(logs, {
+ log: [], error: [],
+ warn: ["Animated zooms and range selector are not compatible; disabling animatedZooms."]
+ });
});
it('testRangeSelectorWithAnimatedZoomsOption2', function() {
});
it('testRangeSelectorWithAnimatedZoomsOption2', function() {
@@
-241,6
+249,10
@@
it('testRangeSelectorWithAnimatedZoomsOption2', function() {
g.updateOptions({showRangeSelector: true});
assertGraphExistence(g, graph);
assert.isFalse(g.getOption('animatedZooms'));
g.updateOptions({showRangeSelector: true});
assertGraphExistence(g, graph);
assert.isFalse(g.getOption('animatedZooms'));
+ assert.deepEqual(logs, {
+ log: [], error: [],
+ warn: ["Animated zooms and range selector are not compatible; disabling animatedZooms."]
+ });
});
it('testRangeSelectorInteraction', function() {
});
it('testRangeSelectorInteraction', function() {