Permalink
Browse files

Prepared tests for casper

  • Loading branch information...
1 parent 31c61e1 commit 7c7270e59cfb0a87c33d0a28c5e065df32bd0f70 @schickling schickling committed May 21, 2013
Showing with 59 additions and 9,642 deletions.
  1. +31 −22 Gruntfile.js
  2. +1 −2 package.json
  3. +0 −9,597 spec/lib/jquery.js
  4. +0 −21 spec/test.spec.js
  5. +27 −0 test/test.js
View
@@ -4,24 +4,21 @@ module.exports = function (grunt) {
pkg: grunt.file.readJSON('package.json'),
- // jshint: {
- // files: ['Gruntfile.js', 'src/jquery.overscroll.js', 'spec/**/*.js'],
- // options: {
- // // options here to override JSHint defaults
- // globals: {
- // jQuery: true,
- // console: true,
- // module: true,
- // document: true
- // }
- // }
- // },
-
- jasmine_node: {
- specNameMatcher: ".spec", // load only specs containing specNameMatcher
- projectRoot: ".",
- requirejs: false,
- forceExit: true
+ jshint: {
+ files: [
+ 'Gruntfile.js',
+ // 'src/*.js',
+ 'test/*.js'
+ ],
+ options: {
+ // options here to override JSHint defaults
+ globals: {
+ jQuery: true,
+ console: true,
+ module: true,
+ document: true
+ }
+ }
},
connect: {
@@ -31,18 +28,30 @@ module.exports = function (grunt) {
base: './'
}
}
+ },
+
+ casper: {
+ options: {
+ test: true
+ },
+ test: {
+ src: ['test/test.js']
+ }
}
});
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.loadNpmTasks('grunt-jasmine-node');
+ grunt.loadNpmTasks('grunt-casper');
grunt.registerTask('test', [
+ 'jshint',
'connect:server',
- 'jasmine_node'
- ]);
- grunt.registerTask('default', ['test']);
+ 'casper'
+ ]);
+ grunt.registerTask('default', [
+ 'test'
+ ]);
};
View
@@ -5,9 +5,8 @@
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.5.2",
- "grunt-jasmine-node": "~0.1.0",
"grunt-contrib-connect": "~0.2.0",
- "phantom": "~0.4.2"
+ "grunt-casper": "~0.1.1"
},
"scripts": {
"test": "grunt test --verbose"
Oops, something went wrong.

0 comments on commit 7c7270e

Please sign in to comment.