mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Renamed and moved to module Observable creation functions.
This commit is contained in:
@@ -529,7 +529,7 @@ export function test_CorrectPropertyValueAfterUsingWrappedValue() {
|
||||
|
||||
export function test_NestedObservablesWithObservableArrayShouldNotCrash() {
|
||||
let someObservableArray = new ObservableArray<any>();
|
||||
let testObservable = observable.Observable.fromJSONRecursive({
|
||||
let testObservable = observable.fromObjectRecursive({
|
||||
firstProp: "test string",
|
||||
secondProp: someObservableArray
|
||||
});
|
||||
|
||||
@@ -1265,7 +1265,7 @@ export function test_only_Bindable_BindingContext_Null_DoesNotThrow() {
|
||||
|
||||
export function test_Observable_from_nested_json_binds_correctly() {
|
||||
let expectedValue = "Test";
|
||||
let model = observable.Observable.fromJSONRecursive({
|
||||
let model = observable.fromObjectRecursive({
|
||||
"firstObject": {
|
||||
"secondObject": {
|
||||
"dummyProperty": "text"
|
||||
@@ -1286,7 +1286,7 @@ export function test_Observable_from_nested_json_binds_correctly() {
|
||||
|
||||
export function test_Observable_from_nested_json_binds_correctly_when_upper_object_is_changed() {
|
||||
let expectedValue = "Test";
|
||||
let model = observable.Observable.fromJSONRecursive({
|
||||
let model = observable.fromObjectRecursive({
|
||||
"firstObject": {
|
||||
"secondObject": {
|
||||
"dummyProperty": "text"
|
||||
@@ -1320,7 +1320,7 @@ export function test_BindingToBindingContextProperty_ShouldUseNewContext() {
|
||||
targetProperty: 'text'
|
||||
});
|
||||
|
||||
let testBindingContext = observable.Observable.fromJSONRecursive({
|
||||
let testBindingContext = observable.fromObjectRecursive({
|
||||
context: {
|
||||
text: 'Alabala'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user