Skip to content

Commit

Permalink
Removed text from visual sprite tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jkphl committed Dec 28, 2014
1 parent f7fb91e commit ac11c35
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
@@ -1,9 +1,10 @@
language: node_js
node_js:
- '0.8'
- '0.10'
before_install:
- npm update -g npm
after_script:
- npm run coveralls
after_failure:
- tar -cvf "travis_${TRAVIS_BUILD_NUMBER}.tar" tmp && curl --ftp-create-dirs -T "travis_${TRAVIS_BUILD_NUMBER}.tar" -u $FTP_USER:$FTP_PASSWORD "ftp://jkphl.is/travis/${TRAVIS_REPO_SLUG}/travis_${TRAVIS_BUILD_NUMBER}.tar"
- tar -cjf "svg-sprite_travis_${TRAVIS_BUILD_NUMBER}.tar.bz2" tmp && curl --ftp-create-dirs -T "svg-sprite_travis_${TRAVIS_BUILD_NUMBER}.tar.bz2" -u $FTP_USER:$FTP_PASSWORD "ftp://jkphl.is/${TRAVIS_REPO_SLUG}/svg-sprite_travis_${TRAVIS_BUILD_NUMBER}.tar.bz2"
Binary file modified test/expected/png/css.html.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions test/svg-sprite.js
Expand Up @@ -110,6 +110,12 @@ function capturePhantom(src, target, cb) {
});
}

before(function(done) {
rimraf(path.normalize(path.join(__dirname, '..', 'tmp')), function(error){
done();
});
});

describe('svg-sprite', function() {
var files = glob.glob.sync('**/weather*.svg', {cwd: cwd});

Expand Down Expand Up @@ -497,10 +503,4 @@ describe('svg-sprite', function() {
*/
});
});
});

//after(function(done) {
// rimraf(path.normalize(path.join(__dirname, '..', 'tmp')), function(error){
// done();
// });
//});
});
3 changes: 3 additions & 0 deletions test/tmpl/css.html
Expand Up @@ -37,6 +37,9 @@
line-height: 1;
vertical-align: middle;
}
figcaption {
display: none;
}
i {
display: inline-block;
margin-bottom: 1em;
Expand Down
3 changes: 3 additions & 0 deletions test/tmpl/view.html
Expand Up @@ -37,6 +37,9 @@
line-height: 1;
vertical-align: middle;
}
figcaption {
display: none;
}
img {
margin-bottom: 1em;
}
Expand Down

0 comments on commit ac11c35

Please sign in to comment.