1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!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 class="yui3-skin-sam">
<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>
<div id="log"></div>
<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: ', '/tests/' + 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();
});
*/
var YUI_config = {
gconfig: true,
};
YUI({
allowRollup: false,
logExclude: {Dom: true, Selector: true, Node: true, attribute: true, base: true, event: true, widget: true },
filter: YUI_config.gfilter,
modules: {
'test-console': {
fullpath : '/src/common/tests/assets/test-console.js',
requires : ['console-filters'],
skinnable: true
},
'skin-sam-test-console': {
fullpath: '/src/common/tests/assets/test-console.css',
type : 'css'
}
}
}).use('test-console', 'test', function(Y) {
YUITest = Y.Test;
Assert = Y.Assert;
runTest();
});
</script>
</body>
</html>