| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,20 +28,6 @@ module.exports = function (grunt) { | |||
| 28 | 28 | 'test/test.js' | |
| 29 | 29 | ] | |
| 30 | 30 | }, | |
| 31 | - mocha: { | ||
| 32 | - all: { | ||
| 33 | - src: ['test/index.html'], | ||
| 34 | - options: { | ||
| 35 | - run: true, | ||
| 36 | - bail: true, | ||
| 37 | - log: true, | ||
| 38 | - reporter: 'Spec' | ||
| 39 | - }, | ||
| 40 | - mocha: { | ||
| 41 | - ignoreLeaks: false | ||
| 42 | - } | ||
| 43 | - } | ||
| 44 | - }, | ||
| 45 | 31 | uglify: { | |
| 46 | 32 | production: { | |
| 47 | 33 | src: [ | |
@@ -58,11 +44,10 @@ module.exports = function (grunt) { | |||
| 58 | 44 | }); | |
| 59 | 45 | ||
| 60 | 46 | grunt.loadNpmTasks('grunt-contrib-jshint'); | |
| 61 | - grunt.loadNpmTasks('grunt-mocha'); | ||
| 62 | 47 | grunt.loadNpmTasks('grunt-contrib-uglify'); | |
| 63 | 48 | grunt.loadNpmTasks('grunt-bump-build-git'); | |
| 64 | 49 | ||
| 65 | - grunt.registerTask('test', ['jshint', 'mocha']); | ||
| 50 | + grunt.registerTask('test', ['jshint']); | ||
| 66 | 51 | grunt.registerTask('default', ['test', 'uglify']); | |
| 67 | 52 | ||
| 68 | 53 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "name": "blueimp-load-image", | |
| 3 | - "version": "1.13.0", | ||
| 3 | + "version": "1.13.1", | ||
| 4 | 4 | "title": "JavaScript Load Image", | |
| 5 | 5 | "description": "JavaScript Load Image is a library to load images provided as File or Blob objects or via URL. It returns an optionally scaled and/or cropped HTML img or canvas element. It also provides a method to parse image meta data to extract Exif tags and thumbnails and to restore the complete image header after resizing.", | |
| 6 | 6 | "keywords": [ | |
@@ -36,12 +36,7 @@ | |||
| 36 | 36 | "url": "git://github.com/blueimp/JavaScript-Load-Image.git" | |
| 37 | 37 | }, | |
| 38 | 38 | "bugs": "https://github.com/blueimp/JavaScript-Load-Image/issues", | |
| 39 | - "licenses": [ | ||
| 40 | - { | ||
| 41 | - "type": "MIT", | ||
| 42 | - "url": "http://www.opensource.org/licenses/MIT" | ||
| 43 | - } | ||
| 44 | - ], | ||
| 39 | + "license": "MIT", | ||
| 45 | 40 | "main": [ | |
| 46 | 41 | "js/load-image.js", | |
| 47 | 42 | "js/load-image-ios.js", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "name": "blueimp-load-image", | |
| 3 | - "version": "1.13.0", | ||
| 3 | + "version": "1.13.1", | ||
| 4 | 4 | "title": "JavaScript Load Image", | |
| 5 | 5 | "description": "JavaScript Load Image is a library to load images provided as File or Blob objects or via URL. It returns an optionally scaled and/or cropped HTML img or canvas element. It also provides a method to parse image meta data to extract Exif tags and thumbnails and to restore the complete image header after resizing.", | |
| 6 | 6 | "keywords": [ | |
@@ -36,17 +36,11 @@ | |||
| 36 | 36 | "url": "git://github.com/blueimp/JavaScript-Load-Image.git" | |
| 37 | 37 | }, | |
| 38 | 38 | "bugs": "https://github.com/blueimp/JavaScript-Load-Image/issues", | |
| 39 | - "licenses": [ | ||
| 40 | - { | ||
| 41 | - "type": "MIT", | ||
| 42 | - "url": "http://www.opensource.org/licenses/MIT" | ||
| 43 | - } | ||
| 44 | - ], | ||
| 39 | + "license": "MIT", | ||
| 45 | 40 | "devDependencies": { | |
| 46 | 41 | "grunt": "~0.4.5", | |
| 47 | 42 | "grunt-contrib-uglify": "~0.5.1", | |
| 48 | 43 | "grunt-contrib-jshint": "~0.10.0", | |
| 49 | - "grunt-bump-build-git": "~1.1.1", | ||
| 50 | - "grunt-mocha": "~0.4.11" | ||
| 44 | + "grunt-bump-build-git": "~1.1.1" | ||
| 51 | 45 | } | |
| 52 | 46 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,12 +19,12 @@ | |||
| 19 | 19 | <meta charset="utf-8"> | |
| 20 | 20 | <title>JavaScript Load Image Test</title> | |
| 21 | 21 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| 22 | - <link rel="stylesheet" href="https://blueimp.github.io/cdn/css/mocha.min.css"> | ||
| 22 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.2.5/mocha.min.css"> | ||
| 23 | 23 | </head> | |
| 24 | 24 | <body> | |
| 25 | 25 | <div id="mocha"></div> | |
| 26 | - <script src="https://blueimp.github.io/cdn/js/mocha.min.js"></script> | ||
| 27 | - <script src="https://blueimp.github.io/cdn/js/expect.min.js"></script> | ||
| 26 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.2.5/mocha.min.js"></script> | ||
| 27 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/expect.js/0.2.0/expect.min.js"></script> | ||
| 28 | 28 | <script> | |
| 29 | 29 | mocha.setup('bdd'); | |
| 30 | 30 | </script> | |
@@ -37,10 +37,8 @@ | |||
| 37 | 37 | <script src="../js/load-image-exif-map.js"></script> | |
| 38 | 38 | <script src="test.js"></script> | |
| 39 | 39 | <script> | |
| 40 | - if (!window.PHANTOMJS) { | ||
| 41 | - mocha.checkLeaks(); | ||
| 42 | - mocha.run(); | ||
| 43 | - } | ||
| 40 | + mocha.checkLeaks(); | ||
| 41 | + mocha.run(); | ||
| 44 | 42 | </script> | |
| 45 | - </body> | ||
| 43 | + </body> | ||
| 46 | 44 | </html> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments