From bd48e2da49fd2f9a1d605ed74cc6f317bac7f00c Mon Sep 17 00:00:00 2001 From: Akash Agrawal Date: Tue, 10 May 2016 23:54:16 +0530 Subject: [PATCH] Shifting back to label now that I know how to deal with tsc's error --- .../xml-declaration/xml-declaration-tests.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/tests/xml-declaration/xml-declaration-tests.ts b/apps/tests/xml-declaration/xml-declaration-tests.ts index edb1d3371..bbf7c6a85 100644 --- a/apps/tests/xml-declaration/xml-declaration-tests.ts +++ b/apps/tests/xml-declaration/xml-declaration-tests.ts @@ -135,22 +135,22 @@ export function test_loadWithOptionsFromTNSPath() { export function test_loadWithAttributes() { var lText = "Nativescript rocks"; + var lWrap = true; var lColor = "#FF0000"; // red var v = builder.load({ - path: "~/xml-declaration/mymodulewithxml", - name: "MyControl", - page: new Page(), + path: "tns_modules/ui/label", + name: "Label", attributes: { - customAttribute: { - text: lText - }, - style: "background-color: " + lColor + ";" + text: lText, + textWrap: lWrap, + style: "color: " + lColor + ";" } }); - TKUnit.assertEqual(v["customAttribute"]["text"], lText, "Expected result: true; Actual result: " + v + ";"); - helper.assertViewBackgroundColor(v, lColor); + TKUnit.assertEqual(v["text"], lText, "Expected result: true; Actual result: " + v + ";"); + TKUnit.assertEqual(v["textWrap"], true, "Expected result: true; Actual result: " + v + ";"); + helper.assertViewColor(v, lColor); }; export function test_parse_ShouldNotCrashWithoutExports() {