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();
|
2013-10-29 14:24:22 -04:00
|
|
|
window.Worker = undefined;
|
2013-06-10 11:57:33 -04:00
|
|
|
|
|
|
|
app.config.workerPath = '../../src/js';
|
|
|
|
|
|
|
|
startTests();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
function startTests() {
|
2013-08-31 10:09:25 -04:00
|
|
|
require(
|
|
|
|
[
|
|
|
|
'test/unit/forge-test',
|
|
|
|
'test/unit/aes-test',
|
|
|
|
'test/unit/rsa-test',
|
|
|
|
'test/unit/keychain-dao-test',
|
|
|
|
'test/unit/crypto-test',
|
|
|
|
'test/unit/devicestorage-dao-test'
|
|
|
|
], function() {
|
|
|
|
//Tests loaded, run tests
|
|
|
|
QUnit.start();
|
|
|
|
}
|
|
|
|
);
|
2013-06-10 11:57:33 -04:00
|
|
|
}
|