diff --git a/apps/tests/xml-declaration/xml-declaration-tests.ts b/apps/tests/xml-declaration/xml-declaration-tests.ts index 79baf9e64..79bc65873 100644 --- a/apps/tests/xml-declaration/xml-declaration-tests.ts +++ b/apps/tests/xml-declaration/xml-declaration-tests.ts @@ -143,4 +143,14 @@ export var test_parse_ShouldParseBindingsWithObservable = function () { obj.set("myProp", false); TKUnit.assert(sw.checked === false, "Expected result: false; Actual result: " + sw.checked + "; type: " + typeof (sw.checked)); +}; + +export var test_parse_ShouldParseSubProperties = function () { + var p = builder.parse(""); + var obj = new observable.Observable(); + obj.set("myProp", true); + p.bindingContext = obj; + var sw = p.content; + + TKUnit.assert(sw.visibility === "collapsed", "Expected result: collapsed; Actual result: " + sw.visibility + "; type: " + typeof (sw.visibility)); }; \ No newline at end of file