mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Playing with the unit test in order to blind-fix it for the PR build.
This commit is contained in:
@@ -24,7 +24,7 @@ import scrollViewModule = require("ui/scroll-view");
|
||||
|
||||
// </snippet>
|
||||
|
||||
var ASYNC = 0.3;
|
||||
var ASYNC = 2;
|
||||
var tmp: buttonModule.Button;
|
||||
var newPage: page.Page;
|
||||
|
||||
@@ -236,9 +236,7 @@ export function test_scrollToHorizontalOffset_with_animation() {
|
||||
// No synchronous change.
|
||||
TKUnit.assertEqual(scrollView.horizontalOffset, 0, "scrollView.horizontalOffset");
|
||||
|
||||
//For some reason this wait here causes the test to fail on PR builds.
|
||||
//TKUnit.waitUntilReady(() => { return scrollView.horizontalOffset === 100 }, ASYNC);
|
||||
TKUnit.wait(1);
|
||||
TKUnit.waitUntilReady(() => { return scrollView.horizontalOffset === 100 }, ASYNC);
|
||||
|
||||
// The scrolling animation should be finished by now
|
||||
TKUnit.assertAreClose(scrollView.horizontalOffset, 100, 0.1, "scrollView.horizontalOffset");
|
||||
|
||||
@@ -39,7 +39,7 @@ import tabViewModule = require("ui/tab-view");
|
||||
// ```
|
||||
// </snippet>
|
||||
|
||||
var ASYNC = 0.3;
|
||||
var ASYNC = 2;
|
||||
|
||||
function _createTabView(): tabViewModule.TabView {
|
||||
// <snippet module="ui/tab-view" title="TabView">
|
||||
@@ -545,9 +545,7 @@ function testLoadedAndUnloadedAreFired_WhenNavigatingAwayAndBack(enablePageCache
|
||||
helper.goBack();
|
||||
}
|
||||
|
||||
//For some reason this wait here causes the test to fail on PR builds.
|
||||
//TKUnit.waitUntilReady(() => { return items[0].view.isLoaded; }, ASYNC);
|
||||
TKUnit.wait(1);
|
||||
TKUnit.waitUntilReady(() => { return items[0].view.isLoaded; }, ASYNC);
|
||||
|
||||
//console.log(">>>>>>>>>>>>> loaded items: " + loadedItems.join(", "));
|
||||
//console.log(">>>>>>>>>>>>> unloadedItems items: " + unloadedItems.join(", "));
|
||||
|
||||
Reference in New Issue
Block a user