mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Revert bind(options) replaced incorrectly with bind(options, model)
This commit is contained in:
@@ -354,7 +354,7 @@ export function test_binding_value_to_bindingContext() {
|
||||
sourceProperty: "age",
|
||||
targetProperty: "value"
|
||||
};
|
||||
slider.bind(options, model);
|
||||
slider.bind(options);
|
||||
|
||||
TKUnit.assertEqual(slider.value, 21, "slider.value");
|
||||
model.set("age", 22);
|
||||
|
||||
@@ -211,7 +211,7 @@ export var testBindTextToBindingContext = function () {
|
||||
targetProperty: "text"
|
||||
}
|
||||
|
||||
textField.bind(options, model);
|
||||
textField.bind(options);
|
||||
TKUnit.assert(textField.text === "john", "Actual: " + textField.text + "; Expected: " + "john");
|
||||
TKUnit.assert(textFieldTestsNative.getNativeText(textField) === "john", "Actual: " + textFieldTestsNative.getNativeText(textField) + "; Expected: " + "john");
|
||||
|
||||
@@ -289,7 +289,7 @@ export var testBindHintToBindingConext = function () {
|
||||
targetProperty: "hint"
|
||||
}
|
||||
|
||||
textField.bind(options, model);
|
||||
textField.bind(options);
|
||||
TKUnit.assert(textField.hint === "type your username here", "Actual: " + textField.hint + "; Expected: " + "type your username here");
|
||||
TKUnit.assert(textFieldTestsNative.getNativeHint(textField) === "type your username here", "Actual: " + textFieldTestsNative.getNativeHint(textField) + "; Expected: " + "type your username here");
|
||||
|
||||
@@ -354,7 +354,7 @@ export var testBindSecureToBindingConext = function () {
|
||||
targetProperty: "secure"
|
||||
}
|
||||
|
||||
textField.bind(options, model);
|
||||
textField.bind(options);
|
||||
TKUnit.assert(textField.secure === true, "Actual: " + textField.secure + "; Expected: " + true);
|
||||
TKUnit.assert(textFieldTestsNative.getNativeSecure(textField) === true, "Actual: " + textFieldTestsNative.getNativeSecure(textField) + "; Expected: " + true);
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ export var testBindTextToBindingContext = function () {
|
||||
targetProperty: "text"
|
||||
}
|
||||
|
||||
textView.bind(options, model);
|
||||
textView.bind(options);
|
||||
TKUnit.assert(textView.text === "john", "Actual: " + textView.text + "; Expected: " + "john");
|
||||
TKUnit.assert(textViewTestsNative.getNativeText(textView) === "john", "Actual: " + textViewTestsNative.getNativeText(textView) + "; Expected: " + "john");
|
||||
|
||||
@@ -214,7 +214,7 @@ export var testBindHintToBindingConext = function () {
|
||||
targetProperty: "hint"
|
||||
}
|
||||
|
||||
textView.bind(options, model);
|
||||
textView.bind(options);
|
||||
TKUnit.assert(textView.hint === "type your username here", "Actual: " + textView.hint + "; Expected: " + "type your username here");
|
||||
TKUnit.assert(textViewTestsNative.getNativeHint(textView) === "type your username here", "Actual: " + textViewTestsNative.getNativeHint(textView) + "; Expected: " + "type your username here");
|
||||
|
||||
@@ -334,7 +334,7 @@ export var testBindEditableToBindingConext = function () {
|
||||
targetProperty: "editable"
|
||||
}
|
||||
|
||||
textView.bind(options, model);
|
||||
textView.bind(options);
|
||||
TKUnit.assert(textView.editable === false, "Actual: " + textView.text + "; Expected: " + false);
|
||||
TKUnit.assert(textViewTestsNative.getNativeEditable(textView) === false, "Actual: " + textViewTestsNative.getNativeEditable(textView) + "; Expected: " + false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user