1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-22 08:52:15 -05:00

rebased test dir

This commit is contained in:
Tankred Hase 2013-04-06 16:24:28 +02:00
parent 1f3c91f1d3
commit 7ae1a57888
19 changed files with 169 additions and 164 deletions

View File

@ -10,7 +10,7 @@ var express = require('express'),
if (process.argv[2]) {
port = process.argv[2];
} else {
port = 8080;
port = 8585;
}
if (process.argv[3] === '--dev') {
@ -41,6 +41,11 @@ app.configure(function() {
return next();
});
}
if (dev) {
app.use(express['static'](__dirname + '/test'));
}
app.use(express['static'](__dirname + '/src'));
});

View File

@ -1,74 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JavaScript Integration Tests</title>
<link rel="stylesheet" href="../qunit-1.11.0.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script>
// clear session storage of failed tests, so async order is correct after fail & refresh
window.sessionStorage.clear();
</script>
<!-- dependencies -->
<script src="../../lib/cordova-2.5.0.js"></script>
<script src="../qunit-1.11.0.js"></script>
<script src="../../lib/jquery-1.8.2.min.js"></script>
<script src="../../lib/underscore-1.4.4.min.js"></script>
<script src="../../lib/backbone-0.9.10.min.js"></script>
<script src="../../lib/lawnchair/lawnchair-git.min.js"></script>
<script src="../../lib/lawnchair/lawnchair-adapter-indexed-db-git.js"></script>
<script src="../../lib/lawnchair/lawnchair-adapter-webkit-sqlite-git.js"></script>
<script src="../../lib/crypto-js/core.js"></script>
<script src="../../lib/crypto-js/enc-base64.js"></script>
<script src="../../lib/crypto-js/cipher-core.js"></script>
<script src="../../lib/crypto-js/aes.js"></script>
<script src="../../lib/crypto-js/sha1.js"></script>
<script src="../../lib/crypto-js/hmac.js"></script>
<script src="../../lib/crypto-js/pbkdf2.js"></script>
<script src="../../lib/sjcl/sjcl.js"></script>
<script src="../../lib/sjcl/sha256.js"></script>
<script src="../../lib/sjcl/random.js"></script>
<script src="../../lib/sjcl/bitArray.js"></script>
<script src="../../lib/sjcl/codecBase64.js"></script>
<script src="../../lib/sjcl/codecString.js"></script>
<script src="../../lib/sjcl/aes.js"></script>
<script src="../../lib/sjcl/ccm.js"></script>
<script src="../../lib/uuid.js"></script>
<script src="../../lib/openpgp.min.js"></script>
<script src="../../js/app-config.js"></script>
<script>
app.config.workerPath = '../../js';
app.config.cloudUrl = 'http://localhost:8888';
</script>
<script src="../../js/model/email-model.js"></script>
<script src="../../js/model/folder-model.js"></script>
<script src="../../js/model/account-model.js"></script>
<script src="../../js/crypto/util.js"></script>
<script src="../../js/crypto/pbkdf2.js"></script>
<script src="../../js/crypto/aes-cbc.js"></script>
<script src="../../js/crypto/aes-ccm.js"></script>
<script src="../../js/crypto/aes-gcm.js"></script>
<script src="../../js/crypto/crypto.js"></script>
<script src="../../js/dao/localstorage-dao.js"></script>
<script src="../../js/dao/lawnchair-dao.js"></script>
<script src="../../js/dao/devicestorage.js"></script>
<script src="../../js/dao/cloudstorage-dao.js"></script>
<script src="../../js/dao/email-dao.js"></script>
<!-- tests -->
<script src="cloudstorage-dao-test.js"></script>
</body>
</html>

View File

@ -1,89 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JavaScript Unit Tests</title>
<link rel="stylesheet" href="../qunit-1.11.0.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script>
// clear session storage of failed tests, so async order is correct after fail & refresh
window.sessionStorage.clear();
</script>
<!-- dependencies -->
<script src="../../lib/cordova-2.5.0.js"></script>
<script src="../qunit-1.11.0.js"></script>
<script src="../../lib/jquery-1.8.2.min.js"></script>
<script src="../../lib/underscore-1.4.4.min.js"></script>
<script src="../../lib/backbone-0.9.10.min.js"></script>
<script src="../../lib/lawnchair/lawnchair-git.min.js"></script>
<script src="../../lib/lawnchair/lawnchair-adapter-indexed-db-git.js"></script>
<script src="../../lib/lawnchair/lawnchair-adapter-webkit-sqlite-git.js"></script>
<script src="../../lib/crypto-js/core.js"></script>
<script src="../../lib/crypto-js/enc-base64.js"></script>
<script src="../../lib/crypto-js/cipher-core.js"></script>
<script src="../../lib/crypto-js/aes.js"></script>
<script src="../../lib/crypto-js/sha1.js"></script>
<script src="../../lib/crypto-js/hmac.js"></script>
<script src="../../lib/crypto-js/pbkdf2.js"></script>
<script src="../../lib/sjcl/sjcl.js"></script>
<script src="../../lib/sjcl/sha256.js"></script>
<script src="../../lib/sjcl/random.js"></script>
<script src="../../lib/sjcl/bitArray.js"></script>
<script src="../../lib/sjcl/codecBase64.js"></script>
<script src="../../lib/sjcl/codecString.js"></script>
<script src="../../lib/sjcl/aes.js"></script>
<script src="../../lib/sjcl/ccm.js"></script>
<script src="../../lib/sjcl/bn.js"></script>
<script src="../../lib/sjcl/ecc.js"></script>
<script src="../../lib/sjcl/convenience.js"></script>
<script src="../../lib/nacl.js"></script>
<script src="../../lib/uuid.js"></script>
<script src="../../lib/openpgp.min.js"></script>
<script src="../../js/app-config.js"></script>
<script>
app.config.workerPath = '../../js';
app.config.cloudUrl = 'http://localhost:8888';
</script>
<script src="../../js/model/email-model.js"></script>
<script src="../../js/model/folder-model.js"></script>
<script src="../../js/model/account-model.js"></script>
<script src="../../js/crypto/util.js"></script>
<script src="../../js/crypto/pbkdf2.js"></script>
<script src="../../js/crypto/aes-cbc.js"></script>
<script src="../../js/crypto/aes-ccm.js"></script>
<script src="../../js/crypto/aes-gcm.js"></script>
<script src="../../js/crypto/nacl-crypto.js"></script>
<script src="../../js/crypto/crypto.js"></script>
<script src="../../js/dao/localstorage-dao.js"></script>
<script src="../../js/dao/lawnchair-dao.js"></script>
<script src="../../js/dao/devicestorage.js"></script>
<script src="../../js/dao/cloudstorage-dao.js"></script>
<script src="../../js/dao/email-dao.js"></script>
<!-- tests -->
<script src="../test-data.js"></script>
<script src="util-test.js"></script>
<script src="aes-test.js"></script>
<script src="nacl-crypto-test.js"></script>
<script src="ecc-test.js"></script>
<script src="crypto-test.js"></script>
<script src="localstorage-dao-test.js"></script>
<script src="lawnchair-dao-test.js"></script>
<script src="devicestorage-test.js"></script>
<script src="email-dao-test.js"></script>
</body>
</html>

View File

@ -0,0 +1,74 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JavaScript Integration Tests</title>
<link rel="stylesheet" href="../qunit-1.11.0.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script>
// clear session storage of failed tests, so async order is correct after fail & refresh
window.sessionStorage.clear();
</script>
<!-- dependencies -->
<script src="../lib/cordova-2.5.0.js"></script>
<script src="../qunit-1.11.0.js"></script>
<script src="../lib/jquery-1.8.2.min.js"></script>
<script src="../lib/underscore-1.4.4.min.js"></script>
<script src="../lib/backbone-0.9.10.min.js"></script>
<script src="../lib/lawnchair/lawnchair-git.min.js"></script>
<script src="../lib/lawnchair/lawnchair-adapter-indexed-db-git.js"></script>
<script src="../lib/lawnchair/lawnchair-adapter-webkit-sqlite-git.js"></script>
<script src="../lib/crypto-js/core.js"></script>
<script src="../lib/crypto-js/enc-base64.js"></script>
<script src="../lib/crypto-js/cipher-core.js"></script>
<script src="../lib/crypto-js/aes.js"></script>
<script src="../lib/crypto-js/sha1.js"></script>
<script src="../lib/crypto-js/hmac.js"></script>
<script src="../lib/crypto-js/pbkdf2.js"></script>
<script src="../lib/sjcl/sjcl.js"></script>
<script src="../lib/sjcl/sha256.js"></script>
<script src="../lib/sjcl/random.js"></script>
<script src="../lib/sjcl/bitArray.js"></script>
<script src="../lib/sjcl/codecBase64.js"></script>
<script src="../lib/sjcl/codecString.js"></script>
<script src="../lib/sjcl/aes.js"></script>
<script src="../lib/sjcl/ccm.js"></script>
<script src="../lib/uuid.js"></script>
<script src="../lib/openpgp.min.js"></script>
<script src="../js/app-config.js"></script>
<script>
app.config.workerPath = '../js';
app.config.cloudUrl = 'http://localhost:8888';
</script>
<script src="../js/model/email-model.js"></script>
<script src="../js/model/folder-model.js"></script>
<script src="../js/model/account-model.js"></script>
<script src="../js/crypto/util.js"></script>
<script src="../js/crypto/pbkdf2.js"></script>
<script src="../js/crypto/aes-cbc.js"></script>
<script src="../js/crypto/aes-ccm.js"></script>
<script src="../js/crypto/aes-gcm.js"></script>
<script src="../js/crypto/crypto.js"></script>
<script src="../js/dao/localstorage-dao.js"></script>
<script src="../js/dao/lawnchair-dao.js"></script>
<script src="../js/dao/devicestorage.js"></script>
<script src="../js/dao/cloudstorage-dao.js"></script>
<script src="../js/dao/email-dao.js"></script>
<!-- tests -->
<script src="cloudstorage-dao-test.js"></script>
</body>
</html>

89
test/unit/index.html Normal file
View File

@ -0,0 +1,89 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JavaScript Unit Tests</title>
<link rel="stylesheet" href="../qunit-1.11.0.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script>
// clear session storage of failed tests, so async order is correct after fail & refresh
window.sessionStorage.clear();
</script>
<!-- dependencies -->
<script src="../lib/cordova-2.5.0.js"></script>
<script src="../qunit-1.11.0.js"></script>
<script src="../lib/jquery-1.8.2.min.js"></script>
<script src="../lib/underscore-1.4.4.min.js"></script>
<script src="../lib/backbone-0.9.10.min.js"></script>
<script src="../lib/lawnchair/lawnchair-git.min.js"></script>
<script src="../lib/lawnchair/lawnchair-adapter-indexed-db-git.js"></script>
<script src="../lib/lawnchair/lawnchair-adapter-webkit-sqlite-git.js"></script>
<script src="../lib/crypto-js/core.js"></script>
<script src="../lib/crypto-js/enc-base64.js"></script>
<script src="../lib/crypto-js/cipher-core.js"></script>
<script src="../lib/crypto-js/aes.js"></script>
<script src="../lib/crypto-js/sha1.js"></script>
<script src="../lib/crypto-js/hmac.js"></script>
<script src="../lib/crypto-js/pbkdf2.js"></script>
<script src="../lib/sjcl/sjcl.js"></script>
<script src="../lib/sjcl/sha256.js"></script>
<script src="../lib/sjcl/random.js"></script>
<script src="../lib/sjcl/bitArray.js"></script>
<script src="../lib/sjcl/codecBase64.js"></script>
<script src="../lib/sjcl/codecString.js"></script>
<script src="../lib/sjcl/aes.js"></script>
<script src="../lib/sjcl/ccm.js"></script>
<script src="../lib/sjcl/bn.js"></script>
<script src="../lib/sjcl/ecc.js"></script>
<script src="../lib/sjcl/convenience.js"></script>
<script src="../lib/nacl.js"></script>
<script src="../lib/uuid.js"></script>
<script src="../lib/openpgp.min.js"></script>
<script src="../js/app-config.js"></script>
<script>
app.config.workerPath = '../js';
app.config.cloudUrl = 'http://localhost:8888';
</script>
<script src="../js/model/email-model.js"></script>
<script src="../js/model/folder-model.js"></script>
<script src="../js/model/account-model.js"></script>
<script src="../js/crypto/util.js"></script>
<script src="../js/crypto/pbkdf2.js"></script>
<script src="../js/crypto/aes-cbc.js"></script>
<script src="../js/crypto/aes-ccm.js"></script>
<script src="../js/crypto/aes-gcm.js"></script>
<script src="../js/crypto/nacl-crypto.js"></script>
<script src="../js/crypto/crypto.js"></script>
<script src="../js/dao/localstorage-dao.js"></script>
<script src="../js/dao/lawnchair-dao.js"></script>
<script src="../js/dao/devicestorage.js"></script>
<script src="../js/dao/cloudstorage-dao.js"></script>
<script src="../js/dao/email-dao.js"></script>
<!-- tests -->
<script src="../test-data.js"></script>
<script src="util-test.js"></script>
<script src="aes-test.js"></script>
<script src="nacl-crypto-test.js"></script>
<script src="ecc-test.js"></script>
<script src="crypto-test.js"></script>
<script src="localstorage-dao-test.js"></script>
<script src="lawnchair-dao-test.js"></script>
<script src="devicestorage-test.js"></script>
<script src="email-dao-test.js"></script>
</body>
</html>