projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump to version 2 🎉
[dygraphs.git]
/
auto_tests
/
tests
/
two_digit_years.js
diff --git
a/auto_tests/tests/two_digit_years.js
b/auto_tests/tests/two_digit_years.js
index
9e2d490
..
76241f8
100644
(file)
--- a/
auto_tests/tests/two_digit_years.js
+++ b/
auto_tests/tests/two_digit_years.js
@@
-3,6
+3,12
@@
*
* @author gmadrid@gmail.com (George Madrid)
*/
*
* @author gmadrid@gmail.com (George Madrid)
*/
+
+import Dygraph from '../../src/dygraph';
+import {Granularity, getDateAxis} from '../../src/dygraph-tickers';
+import * as utils from '../../src/dygraph-utils';
+import DEFAULT_ATTRS from '../../src/dygraph-default-attrs';
+
describe("two-digit-years", function() {
it('testTwoDigitYears', function() {
describe("two-digit-years", function() {
it('testTwoDigitYears', function() {
@@
-16,8
+22,8
@@
it('testTwoDigitYears', function() {
start.setFullYear(9);
end.setFullYear(11);
start.setFullYear(9);
end.setFullYear(11);
- var ticks =
Dygraph.getDateAxis(start, end, Dygraph
.QUARTERLY, function(x) {
- return D
ygraph.D
EFAULT_ATTRS.axes['x'][x];
+ var ticks =
getDateAxis(start, end, Granularity
.QUARTERLY, function(x) {
+ return DEFAULT_ATTRS.axes['x'][x];
});
// This breaks in Firefox & Safari:
});
// This breaks in Firefox & Safari: