1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-12 04:05:13 -05:00
mail/test/unit/main.js

36 lines
818 B
JavaScript
Raw Normal View History

2013-06-10 11:57:33 -04:00
'use strict';
require(['../../src/require-config'], function() {
require.config({
baseUrl: '../../src/lib'
});
// Start the main app logic.
2013-06-10 18:17:08 -04:00
require(['cordova', 'js/app-config'], function() {
2013-06-10 11:57:33 -04:00
// clear session storage of failed tests, so async order is correct after fail & refresh
window.sessionStorage.clear();
window.Worker = undefined;
app.config.workerPath = '../../src/js';
app.config.cloudUrl = 'http://localhost:8888';
startTests();
});
});
function startTests() {
require([
'test/unit/forge-test',
2013-06-10 16:02:29 -04:00
'test/unit/aes-test',
'test/unit/rsa-test',
2013-06-10 16:45:21 -04:00
'test/unit/lawnchair-dao-test',
2013-06-10 17:07:29 -04:00
'test/unit/keychain-dao-test',
2013-06-10 17:22:57 -04:00
'test/unit/crypto-test',
'test/unit/devicestorage-dao-test',
'test/unit/email-dao-test'
2013-06-10 11:57:33 -04:00
], function() {
2013-06-10 16:45:21 -04:00
//Tests loaded, run tests
QUnit.start();
2013-06-10 11:57:33 -04:00
});
}