Skip to content

Commit

Permalink
Add glyphs support to render test
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Jul 22, 2014
1 parent a632597 commit ffb343f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/render.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ fs.readdirSync(path.join(suitePath, 'tests')).forEach(function(dir) {
style.sprite = style.sprite.replace(/^local:\/\//, 'http://localhost:2900/');
}

if (style.glyphs) {
style.glyphs = style.glyphs.replace(/^local:\/\//, 'http://localhost:2900/');
}

for (var k in info) {
(info[k].js === false ? test.skip : test)(dir + ' ' + k, renderTest(style, info[k], path.join(suitePath, 'tests', dir, k)));
}
Expand Down

0 comments on commit ffb343f

Please sign in to comment.