OLD | NEW |
1 // An version of Dromaeo's original htmlrunner adapted for the | 1 // An version of Dromaeo's original htmlrunner adapted for the |
2 // Dart-based test driver. | 2 // Dart-based test driver. |
3 | 3 |
4 var _operations = []; | 4 var _operations = []; |
5 var _N_RUNS = 5; | 5 var _N_RUNS = 5; |
6 var _nRanTests = 0; | 6 var _nRanTests = 0; |
7 var _nTests = 0; | 7 var _nTests = 0; |
8 var _T_DISTRIBUTION = 2.776; | 8 var _T_DISTRIBUTION = 2.776; |
9 | 9 |
10 function startTest() { | 10 function startTest() { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 }); | 133 }); |
134 } | 134 } |
135 | 135 |
136 function endTest() { | 136 function endTest() { |
137 _postMessage('inited', { 'nTests': _nTests }); | 137 _postMessage('inited', { 'nTests': _nTests }); |
138 } | 138 } |
139 | 139 |
140 function prep(fn) { | 140 function prep(fn) { |
141 _operations.push(fn); | 141 _operations.push(fn); |
142 } | 142 } |
OLD | NEW |