Playing with the unit test in order to blind-fix it for the PR build.

This commit is contained in:
Rossen Hristov
2015-10-13 16:40:49 +03:00
parent 30acc6286d
commit d66ec1cf1e

View File

@ -545,13 +545,13 @@ function testLoadedAndUnloadedAreFired_WhenNavigatingAwayAndBack(enablePageCache
helper.goBack();
}
//TKUnit.waitUntilReady(() => { return items[0].view.isLoaded; }, ASYNC);
TKUnit.wait(500);
TKUnit.wait(1);
//console.log("loaded items: " + loadedItems.join(", "));
//console.log("unloadedItems items: " + unloadedItems.join(", "));
console.log(">>>>>>>>>>>>> loaded items: " + loadedItems.join(", "));
console.log(">>>>>>>>>>>>> unloadedItems items: " + unloadedItems.join(", "));
// Check that at least the first item is loaded and unloaded
TKUnit.assert(items[0].view.isLoaded, "Thecontent of the first tab should be loaded.");
TKUnit.assert(items[0].view.isLoaded, "The content of the first tab should be loaded.");
TKUnit.assertEqual(loadedItems[0], 1, "loaded count for 1st item");
TKUnit.assertEqual(unloadedItems[0], 1, "unloaded count for 1st item");