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 21:14:57 -04:00
|
|
|
require(['js/app-config', 'cordova'], function(app) {
|
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';
|
|
|
|
|
|
|
|
startTests();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
function startTests() {
|
2013-06-11 11:12:27 -04:00
|
|
|
require(['test/unit/forge-test',
|
2013-08-05 10:45:02 -04:00
|
|
|
'test/unit/aes-test',
|
|
|
|
'test/unit/rsa-test',
|
|
|
|
'test/unit/lawnchair-dao-test',
|
|
|
|
'test/unit/keychain-dao-test',
|
|
|
|
'test/unit/crypto-test',
|
2013-08-19 15:13:32 -04:00
|
|
|
'test/unit/devicestorage-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
|
|
|
});
|
|
|
|
}
|