auto-scroll browser unit tests
This commit is contained in:
parent
41f1e697b5
commit
9e6005ee39
|
@ -263,7 +263,6 @@ module.exports = function(grunt) {
|
||||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||||
grunt.loadNpmTasks('grunt-contrib-connect');
|
grunt.loadNpmTasks('grunt-contrib-connect');
|
||||||
grunt.loadNpmTasks('grunt-saucelabs');
|
grunt.loadNpmTasks('grunt-saucelabs');
|
||||||
grunt.loadNpmTasks('grunt-keepalive');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
|
|
||||||
grunt.registerTask('set_version', function() {
|
grunt.registerTask('set_version', function() {
|
||||||
|
@ -307,6 +306,6 @@ module.exports = function(grunt) {
|
||||||
grunt.registerTask('test', ['eslint', 'mochaTest']);
|
grunt.registerTask('test', ['eslint', 'mochaTest']);
|
||||||
grunt.registerTask('coverage', ['mocha_istanbul:coverage']);
|
grunt.registerTask('coverage', ['mocha_istanbul:coverage']);
|
||||||
grunt.registerTask('saucelabs', ['default', 'copy:browsertest', 'connect:test', 'saucelabs-mocha']);
|
grunt.registerTask('saucelabs', ['default', 'copy:browsertest', 'connect:test', 'saucelabs-mocha']);
|
||||||
grunt.registerTask('browsertest', ['browserify:openpgp', 'copy:browsertest', 'connect:test', 'keepalive']);
|
grunt.registerTask('browsertest', ['default', 'copy:browsertest', 'connect:test', 'watch']);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
tests();
|
tests();
|
||||||
|
|
||||||
|
//if (typeof window !== 'undefined') { afterEach(function () { window.scrollTo(0, document.body.scrollHeight); }); }
|
||||||
if (options.afterEach) { afterEach(options.afterEach); }
|
if (options.afterEach) { afterEach(options.afterEach); }
|
||||||
if (options.after) { after(options.after); }
|
if (options.after) { after(options.after); }
|
||||||
});
|
});
|
||||||
|
@ -23,6 +24,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
describe('Unit Tests', function () {
|
describe('Unit Tests', function () {
|
||||||
|
|
||||||
|
if (typeof window !== 'undefined') { afterEach(function () { window.scrollTo(0, document.body.scrollHeight); }); }
|
||||||
|
|
||||||
require('./crypto');
|
require('./crypto');
|
||||||
require('./general');
|
require('./general');
|
||||||
require('./worker');
|
require('./worker');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user