fudi
Version:
101 ways to encode/decode FUDI
40 lines (37 loc) • 1.04 kB
HTML
<html>
<head>
<script type="text/javascript" src="../Source/runners/html/assets/require.js"></script>
<script type="text/javascript">
window.runTests = function(){}
/*
make sure to edit this next line to reflect the path of the testigo
source path in your installation.
*/
require.paths.unshift('/Source/');
var Testigo = require('../Source/testigo').Testigo,
Tests = new Testigo();
Tests.setCallbacks({
describe: function(suite){
window.top.addSuite(suite);
},
after: function(success, results){
window.top.after(success, results);
},
suiteError: function(suite, count, error){
window.top.suiteError(suite, count, error);
},
afterSuite: function(suite, success, results){
window.top.afterSuite(suite, success, results);
},
afterTest: function(suite, test, results){
window.top.addTest(suite, test, results);
}
});
require('./tests').setup(Tests);
window.runTests = function(){ Tests.run(); }
</script>
</head>
<body>
</body>
</html>