Add tests to the info page.

This commit is contained in:
Lars Jung 2014-07-03 00:13:54 +02:00
parent 82d3b5040e
commit 30993e40f6
3 changed files with 22 additions and 3 deletions

View file

@ -46,6 +46,21 @@ modulejs.define('info', ['$', 'config'], function ($, config) {
$(testsTemp).appendTo('body');
addTest(
'Index file found', 'Add <code>' + setup.INDEX_HREF + '</code> to your index file list',
setup.INDEX_HREF
);
addTest(
'Options parsable', 'File <code>options.json</code> is readable and syntax seams to be correct',
config.options !== null
);
addTest(
'Types parsable', 'File <code>types.json</code> is readable and syntax seams to be correct',
config.types !== null
);
addTest(
'Server software', 'Server is one of apache, lighttpd, nginx or cherokee',
setup.HAS_SERVER, setup.SERVER_NAME + ' ' + setup.SERVER_VERSION