(listView)
| 409 | } |
| 410 | |
| 411 | function waitForItemsLoaded(listView) { |
| 412 | return new WinJS.Promise(function (complete) { |
| 413 | function handler() { |
| 414 | if (listView.loadingState === "itemsLoaded") { |
| 415 | listView.removeEventListener("loadingstatechanged", handler, false); |
| 416 | complete(); |
| 417 | } |
| 418 | } |
| 419 | |
| 420 | listView.addEventListener("loadingstatechanged", handler, false); |
| 421 | }); |
| 422 | } |
| 423 | |
| 424 | function generateAnimationInViewportPendingFlagTest(complete, firstIndexToInsert, expectedValue) { |
| 425 | WinJS.UI._VirtualizeContentsView._disableCustomPagesPrefetch = true; |
no test coverage detected