Revert bind(options) replaced incorrectly with bind(options, model)

This commit is contained in:
Panayot Cankov
2016-12-19 16:33:10 +02:00
parent e90e2de927
commit 5496ae5215
3 changed files with 7 additions and 7 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);