Shifting back to label now that I know how to deal with tsc's error

This commit is contained in:
Akash Agrawal
2016-05-10 23:54:16 +05:30
parent 89701515c6
commit bd48e2da49

View File

@ -135,22 +135,22 @@ export function test_loadWithOptionsFromTNSPath() {
export function test_loadWithAttributes() { export function test_loadWithAttributes() {
var lText = "Nativescript rocks"; var lText = "Nativescript rocks";
var lWrap = true;
var lColor = "#FF0000"; // red var lColor = "#FF0000"; // red
var v = builder.load({ var v = builder.load({
path: "~/xml-declaration/mymodulewithxml", path: "tns_modules/ui/label",
name: "MyControl", name: "Label",
page: new Page(),
attributes: { attributes: {
customAttribute: { text: lText,
text: lText textWrap: lWrap,
}, style: "color: " + lColor + ";"
style: "background-color: " + lColor + ";"
} }
}); });
TKUnit.assertEqual(v["customAttribute"]["text"], lText, "Expected result: true; Actual result: " + v + ";"); TKUnit.assertEqual(v["text"], lText, "Expected result: true; Actual result: " + v + ";");
helper.assertViewBackgroundColor(v, lColor); TKUnit.assertEqual(v["textWrap"], true, "Expected result: true; Actual result: " + v + ";");
helper.assertViewColor(v, lColor);
}; };
export function test_parse_ShouldNotCrashWithoutExports() { export function test_parse_ShouldNotCrashWithoutExports() {