mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Playing with the unit test in order to blind-fix it for the PR build.
This commit is contained in:
@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user