Skip to content

Commit

Permalink
Add test SVGs
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren Hall committed Nov 3, 2014
1 parent 4d447bb commit 276988d
Show file tree
Hide file tree
Showing 17 changed files with 135 additions and 11 deletions.
4 changes: 2 additions & 2 deletions template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
.sprite__{{fileName}}:before {
@extend %sprite;
background-position: {{x}}{{units}} {{y}}{{units}};
width: {{width}}{{units}};
height: {{height}}{{units}};
width: {{w}}{{units}};
height: {{h}}{{units}};
}
{{/sprites}}
27 changes: 18 additions & 9 deletions test/gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
var gulp = require('gulp'),
svgmin = require('gulp-svgmin'),
svgsprite = require('../index');
jshint = require('gulp-jshint'),
svgmin = require('gulp-svgmin'),
svgsprite = require('../index');

gulp.task('default', function () {
gulp.src('icons/*.svg')
gulp.src('svgs/*.svg')
.pipe(svgsprite({
cssPathNoSvg: './test.png',
demoDest: './demo.html',
padding: 0,
positioning: 'packed',
units: 'em'
cssPathNoSvg: './test.png',
demoDest: './demo.html',
padding: 0,
positioning: 'packed',
units: 'em'
}))
.pipe(svgmin())
.pipe(gulp.dest('test.svg'));
})
});

gulp.task('jshint', function() {
gulp.src('../index.js')
.pipe(jshint({
'node': true
}))
.pipe(jshint.reporter('default'));
});
7 changes: 7 additions & 0 deletions test/svgs/c-20x20.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions test/svgs/c-50x33.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions test/svgs/h-50x50.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/svgs/r-100x200.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/svgs/r-20x20-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/svgs/r-20x20-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/svgs/r-20x20-3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/svgs/r-20x20.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/svgs/r-300x100.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/svgs/r-60x30.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/svgs/s-40x40-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/svgs/s-40x40-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/svgs/s-40x40.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/svgs/s-50x50.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/svgs/t-20x20.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 276988d

Please sign in to comment.