(listview, func)
| 254 | } |
| 255 | |
| 256 | export function whenLoadingComplete(listview, func) { |
| 257 | function checkAndExecute() { |
| 258 | if (listview.loadingState === "complete") { |
| 259 | func(); |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | listview.addEventListener("loadingstatechanged", LiveUnit.GetWrappedCallback(checkAndExecute), false); |
| 264 | checkAndExecute(); |
| 265 | } |
| 266 | |
| 267 | export function runTests(listview, tests) { |
| 268 | var current = 0; |
no test coverage detected