mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Disable recycling of native views
createNativeView will set iOS nativeView if it is null/undefined
This commit is contained in:
@@ -346,7 +346,10 @@ function printRunTestStats() {
|
||||
messageContainer.focus();
|
||||
page.style.fontSize = 11;
|
||||
if (page.android) {
|
||||
setTimeout(() => messageContainer.dismissSoftInput());
|
||||
setTimeout(() => {
|
||||
messageContainer.dismissSoftInput();
|
||||
(<android.view.View>messageContainer.nativeView).scrollTo(0, 0);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -604,7 +604,7 @@ export function test_BindingToDictionaryAtAppLevel() {
|
||||
pageViewModel.set("testProperty", testPropertyName);
|
||||
const dict = {};
|
||||
dict[testPropertyName] = expectedValue;
|
||||
appModule.resources["dict"] = dict;
|
||||
appModule.getResources()["dict"] = dict;
|
||||
|
||||
const testFunc = function (views: Array<View>) {
|
||||
const testLabel = <Label>(views[0]);
|
||||
@@ -629,7 +629,7 @@ export function test_BindingConverterCalledEvenWithNullValue() {
|
||||
const testPropertyValue = null;
|
||||
const expectedValue = "collapsed";
|
||||
pageViewModel.set("testProperty", testPropertyValue);
|
||||
appModule.resources["converter"] = function (value) {
|
||||
appModule.getResources()["converter"] = function (value) {
|
||||
if (value) {
|
||||
return "visible";
|
||||
} else {
|
||||
|
||||
@@ -421,7 +421,7 @@ export class ListViewTest extends testModule.UITest<listViewModule.ListView> {
|
||||
return result;
|
||||
};
|
||||
|
||||
app.resources["dateConverter"] = dateConverter;
|
||||
app.getResources()["dateConverter"] = dateConverter;
|
||||
|
||||
var data = new observableArray.ObservableArray();
|
||||
data.push({ date: new Date(2020, 2, 7) });
|
||||
@@ -542,7 +542,7 @@ export class ListViewTest extends testModule.UITest<listViewModule.ListView> {
|
||||
return value;
|
||||
}
|
||||
|
||||
app.resources["testConverter"] = testConverter;
|
||||
app.getResources()["testConverter"] = testConverter;
|
||||
|
||||
var listViewModel = new observable.Observable();
|
||||
listViewModel.set("items", [1, 2, 3]);
|
||||
@@ -570,7 +570,7 @@ export class ListViewTest extends testModule.UITest<listViewModule.ListView> {
|
||||
return value;
|
||||
}
|
||||
|
||||
app.resources["testConverter"] = testConverter;
|
||||
app.getResources()["testConverter"] = testConverter;
|
||||
|
||||
var listViewModel = new observable.Observable();
|
||||
listViewModel.set("items", [1, 2, 3]);
|
||||
|
||||
@@ -264,7 +264,7 @@ export function test_usingAppLevelConvertersInRepeaterItems() {
|
||||
return result;
|
||||
};
|
||||
|
||||
app.resources["dateConverter"] = dateConverter;
|
||||
app.getResources()["dateConverter"] = dateConverter;
|
||||
|
||||
var data = new observableArray.ObservableArray();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user