mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Clean nodeunit + wait test
This commit is contained in:
parent
85fa98aaa9
commit
921502b752
15
Gruntfile.js
15
Gruntfile.js
|
@ -11,11 +11,6 @@ module.exports = function(grunt) {
|
||||||
//'<%= nodeunit.tests %>'
|
//'<%= nodeunit.tests %>'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
/*
|
|
||||||
nodeunit: {
|
|
||||||
tests: ['tests/nodeunit/*_test.js']
|
|
||||||
},
|
|
||||||
*/
|
|
||||||
connect: {
|
connect: {
|
||||||
www: {
|
www: {
|
||||||
options: {
|
options: {
|
||||||
|
@ -38,21 +33,13 @@ module.exports = function(grunt) {
|
||||||
printFilePaths: true
|
printFilePaths: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
test: {
|
|
||||||
files: [{
|
|
||||||
src: ['tests/integration/casperjs/*_test.js']
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-connect');
|
grunt.loadNpmTasks('grunt-contrib-connect');
|
||||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||||
//grunt.loadNpmTasks('grunt-contrib-nodeunit');
|
|
||||||
grunt.loadNpmTasks('grunt-ghost');
|
grunt.loadNpmTasks('grunt-ghost');
|
||||||
|
|
||||||
grunt.registerTask('test', ['jshint', /*'nodeunit',*/ 'connect', 'ghost']);
|
grunt.registerTask('test', ['jshint', 'connect', 'ghost']);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
casper
|
casper
|
||||||
.start(casper.cli.get('baseUrl'))
|
.start(casper.cli.get('baseUrl'))
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
this.wait(5000, function() {
|
||||||
this.test.assertExists('#drawing-canvas-container canvas', 'Check if drawing canvas element is created');
|
this.test.assertExists('#drawing-canvas-container canvas', 'Check if drawing canvas element is created');
|
||||||
this.test.assertExists('#preview-list .preview-tile', 'Check if first frame is created');
|
this.test.assertExists('#preview-list .preview-tile', 'Check if first frame is created');
|
||||||
this.test.assertExists('#preview-canvas-container canvas', 'Check if animation preview canvas is created');
|
this.test.assertExists('#preview-canvas-container canvas', 'Check if animation preview canvas is created');
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.run(function () {
|
.run(function () {
|
||||||
this.test.done();
|
this.test.done();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user