mail/test/unit/main.js

32 lines
674 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.
require(['js/app-config'], function() {
// 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',
'test/unit/lawnchair-dao-test'
2013-06-10 11:57:33 -04:00
], function() {
QUnit.start(); //Tests loaded, run tests
});
}