--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
20
node_modules/semantic-ui/test/meteor/assets.js
generated
vendored
Normal file
20
node_modules/semantic-ui/test/meteor/assets.js
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
var assets = [
|
||||
'dist/themes/default/assets/images/flags.png',
|
||||
];
|
||||
|
||||
// Check that the font files are downloadable. Meteor places assets at /packages/<packageName>/.
|
||||
assets.forEach(function (path) {
|
||||
Tinytest.addAsync('image ' + path + ' is shipped', function (test, done) {
|
||||
HTTP.get('/packages/semantic_ui/' + path, function callback(error, result) {
|
||||
if (error) {
|
||||
test.fail({message: 'Image failed to load'});
|
||||
}
|
||||
else {
|
||||
test.isTrue(result.content.length > 10000, 'Image ' + path + ' could not be downloaded');
|
||||
}
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
16
node_modules/semantic-ui/test/meteor/fonts.js
generated
vendored
Normal file
16
node_modules/semantic-ui/test/meteor/fonts.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Check that the font files are downloadable. Meteor places assets at /packages/<packageName>/.
|
||||
['eot', 'otf', 'svg', 'ttf', 'woff']
|
||||
.forEach(function (extension) {
|
||||
Tinytest.addAsync(extension + ' fonts are shipped', function (test, done) {
|
||||
HTTP.get('/packages/semantic_ui/dist/themes/default/assets/fonts/icons.' + extension, function callback(error, result) {
|
||||
if (error) {
|
||||
test.fail({message: 'Font failed to load'});
|
||||
}
|
||||
else {
|
||||
test.isTrue(result.content.length > 10000, extension + ' font could not be downloaded');
|
||||
}
|
||||
done();
|
||||
});
|
||||
});
|
||||
})
|
||||
;
|
||||
Loading…
Reference in a new issue