diff --git a/.travis.yml b/.travis.yml index 13ace94eb..1cb448ddf 100644 --- a/.travis.yml +++ b/.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" \ No newline at end of file + - 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" \ No newline at end of file diff --git a/test/expected/png/css.html.png b/test/expected/png/css.html.png index 8c61a29fb..a160f2de3 100644 Binary files a/test/expected/png/css.html.png and b/test/expected/png/css.html.png differ diff --git a/test/svg-sprite.js b/test/svg-sprite.js index 578cf6790..70c882c67 100644 --- a/test/svg-sprite.js +++ b/test/svg-sprite.js @@ -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}); @@ -497,10 +503,4 @@ describe('svg-sprite', function() { */ }); }); -}); - -//after(function(done) { -// rimraf(path.normalize(path.join(__dirname, '..', 'tmp')), function(error){ -// done(); -// }); -//}); \ No newline at end of file +}); \ No newline at end of file diff --git a/test/tmpl/css.html b/test/tmpl/css.html index f66ceb07c..70d9b5646 100644 --- a/test/tmpl/css.html +++ b/test/tmpl/css.html @@ -37,6 +37,9 @@ line-height: 1; vertical-align: middle; } +figcaption { + display: none; +} i { display: inline-block; margin-bottom: 1em; diff --git a/test/tmpl/view.html b/test/tmpl/view.html index e2c162fc6..9508ffc5a 100644 --- a/test/tmpl/view.html +++ b/test/tmpl/view.html @@ -37,6 +37,9 @@ line-height: 1; vertical-align: middle; } +figcaption { + display: none; +} img { margin-bottom: 1em; }