From e7156b53bd2cca7eb1f15f6b24a13ab3bdb10495 Mon Sep 17 00:00:00 2001 From: Nedyalko Nikolov Date: Thu, 1 Oct 2015 16:13:21 +0300 Subject: [PATCH] Fixed issue #814. --- apps/tests/ui/bindable-tests.ts | 2 +- apps/tests/ui/list-view/list-view-tests.ts | 4 +- .../repeaterItems-bindingToGestures.xml | 2 +- .../xml-declaration/xml-declaration-tests.ts | 2 +- ui/builder/binding-builder.d.ts | 2 + ui/builder/binding-builder.ts | 44 ++++++++++++------- ui/core/bindable.ts | 4 +- 7 files changed, 37 insertions(+), 23 deletions(-) diff --git a/apps/tests/ui/bindable-tests.ts b/apps/tests/ui/bindable-tests.ts index cec48c3c7..ee15a6df2 100644 --- a/apps/tests/ui/bindable-tests.ts +++ b/apps/tests/ui/bindable-tests.ts @@ -400,7 +400,7 @@ export var test_getBindableOptionsFromStringShortFormatExpression = function () var bindingExpression = "bindProperty * 2"; var bindOptions = bindingBuilder.getBindingOptions("targetBindProperty", bindingExpression); - TKUnit.assert(bindOptions.sourceProperty === "bindProperty", "Expected: bindProperty, Actual: " + bindOptions.sourceProperty); + TKUnit.assert(bindOptions.sourceProperty === "$value", "Expected: bindProperty, Actual: " + bindOptions.sourceProperty); TKUnit.assert(bindOptions.targetProperty === "targetBindProperty", "Expected: targetBindProperty, Actual: " + bindOptions.targetProperty); TKUnit.assert(bindOptions.expression === "bindProperty * 2", "Expected: bindProperty * 2, Actual: " + bindOptions.expression); TKUnit.assert(bindOptions.twoWay === true, "Expected: true, Actual: " + bindOptions.twoWay); diff --git a/apps/tests/ui/list-view/list-view-tests.ts b/apps/tests/ui/list-view/list-view-tests.ts index 3b6db9736..754b4fb23 100644 --- a/apps/tests/ui/list-view/list-view-tests.ts +++ b/apps/tests/ui/list-view/list-view-tests.ts @@ -561,7 +561,7 @@ export function test_bindingToParentObject() { listViewModel.set("parentTestProp", expectedValue); listView.bindingContext = listViewModel; listView.bind({ sourceProperty: "items", targetProperty: "items" }); - listView.itemTemplate = "