index.html revision 9eacd4f0aa36d89d83ef25c2ea6e6bf265ab08ab
<!doctype html>
<html>
<head>
<title>Generated test runner</title>
<style>
#info {
position: absolute;
right: 50px;
top: 50px;
border: 1px solid black;
background-color: #ccc;
}
iframe {
width: 575px;
height: 85px;
border: 1px dashed black;
}
</style>
</head>
<body>
<h1 id="results">Calculating</h1>
<div id="info">
<p>This test will take around 6 minutes when fully run.</p>
</div>
<pre id="note"></pre>
<script>
//gen_tests = ['node', 'yql', 'dd', 'combo_node', 'combo_yql', 'combo_dd'];
//gen_tests = ['node', 'yql', 'dd', 'rls_node', 'rls_yql', 'rls_dd'];
//gen_tests.reverse();
var h1 = document.getElementById('results');
var note = document.getElementById('note');
var frame;
var title = 'Prepping (#) tests';
var log = function() {
var str = [];
for (var i = 0; i < arguments.length; i++) {
}
};
var results = {},
Assert,
YUITest;
var confirmTests = function() {
document.body.removeChild(frame);
log('Starting YUI Tests');
var endStamp = (new Date()).getTime();
var str = ((endStamp - startStamp) / 1000);
log('Tests Complete: ' + str + 'secs');
});
};
var runTest = function() {
var mod = gen_tests.pop();
if (mod) {
log('Fetching: ', '/mod/' + mod);
if (!frame) {
frame = document.createElement('iframe');
frame.id = 'frame';
document.body.appendChild(frame);
}
} else {
confirmTests();
}
};
var _yui_result = function(d) {
//setTimeout(function() {
runTest();
//}, 200);
};
var startStamp = (new Date()).getTime();
YUI().use('test', function(Y) {
YUITest = Y.Test;
Assert = Y.Assert;
runTest();
});
</script>
</body>
</html>