basePath: '../',
frameworks: [
'mocha',
- 'chai',
- 'chai-as-promised',
- 'sinon-chai',
- 'chai-things',
- 'dirty-chai'
+ 'chai'
],
files: [
'dist/dygraph-combined.dev.js',
DygraphOps.dispatchMouseOut_Point(g, 800, 800); // This call should not throw an exception.
- assert.isFalse("exception thrown during mouseout", failed);
+ assert.isFalse(failed, "exception thrown during mouseout");
});
var g = new Dygraph(graph, data, opts);
var range = g.yAxisRange();
- assert.isTrue('y-axis must include 0', range[0] <= 0);
- assert.isTrue('y-axis must include 5', range[1] >= 5);
+ assert.isTrue(range[0] <= 0, 'y-axis must include 0');
+ assert.isTrue(range[1] >= 5, 'y-axis must include 5');
});
// Regression test for http://code.google.com/p/dygraphs/issues/detail?id=229
zoomhandles[0].dispatchEvent(mouseUpEvent);
var newXRange = g.xAxisRange().slice();
- assert('left zoomhandle should have moved: '+newXRange[0]+'>'+xRange[0], newXRange[0] > xRange[0]);
+ assert(newXRange[0] > xRange[0], 'left zoomhandle should have moved: '+newXRange[0]+'>'+xRange[0]);
assert.equal(xRange[1], newXRange[1], 'right zoomhandle should not have moved');
// Move right zoomhandle in
fgcanvas.dispatchEvent(mouseUpEvent);
var newXRange = g.xAxisRange().slice();
- assert(newXRange[0]+'<'+xRange[0], newXRange[0] < xRange[0]);
- assert(newXRange[1]+'<'+xRange[1], newXRange[1] < xRange[1]);
+ assert(newXRange[0] < xRange[0], newXRange[0]+'<'+xRange[0]);
+ assert(newXRange[1] < xRange[1], newXRange[1]+'<'+xRange[1]);
});
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var karma = require('karma').server;
-var lazypipe = require('lazypipe');
var path = require('path');
var dev = false;
});
-gulp.task("bower-dist", ['concat'], function() {
- gulp.src('src/dygraph/extras/**', {base: 'src/dygraph'})
- .pipe(gulp.dest('dist/bower'));
-
- return gulp.src('dist/dygraph-combined*')
- .pipe(gulp.dest('dist/bower'));
-});
-
gulp.task('gwt-dist', ['concat'], function() {
// Copy package structure to dist folder
gulp.src('gwt/**', {'base': '.'})
gulp.watch(['src/**', 'auto_tests/tests/**'], ['test']);
});
-gulp.task('dist', ['gwt-dist', 'bower-dist']);
+gulp.task('dist', ['gwt-dist', 'concat']);
gulp.task('travis', ['test', 'coveralls']);
gulp.task('default', ['test', 'dist']);
"gulp-uglify": "^1.0.2",
"jshint": "^2.5.10",
"karma": "^0.12.31",
- "karma-chai-plugins": "git+https://github.com/cthrax/karma-chai-plugins.git#c44bd9c2026bcbaf5bb56a9ee35a13d216e44d20",
+ "karma-chai-plugins": "^0.2.4",
"karma-chrome-launcher": "^0.1.7",
"karma-coverage": "^0.2.7",
"karma-mocha": "^0.1.10",
"karma-mocha-reporter": "^1.0.2",
"karma-phantomjs-launcher": "^0.1.4",
"karma-spec-reporter": "0.0.16",
- "lazypipe": "^0.2.2",
"lcov-parse": "0.0.9",
"mocha": "^2.1.0",
"obvious-closure-library": "^20140401.0.2",