Skip to content

Commit bd48e2d

Browse files
committed
Shifting back to label now that I know how to deal with tsc's error
1 parent 8970151 commit bd48e2d

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

apps/tests/xml-declaration/xml-declaration-tests.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,22 +135,22 @@ export function test_loadWithOptionsFromTNSPath() {
135135

136136
export function test_loadWithAttributes() {
137137
var lText = "Nativescript rocks";
138+
var lWrap = true;
138139
var lColor = "#FF0000"; // red
139140

140141
var v = builder.load({
141-
path: "~/xml-declaration/mymodulewithxml",
142-
name: "MyControl",
143-
page: new Page(),
142+
path: "tns_modules/ui/label",
143+
name: "Label",
144144
attributes: {
145-
customAttribute: {
146-
text: lText
147-
},
148-
style: "background-color: " + lColor + ";"
145+
text: lText,
146+
textWrap: lWrap,
147+
style: "color: " + lColor + ";"
149148
}
150149
});
151150

152-
TKUnit.assertEqual(v["customAttribute"]["text"], lText, "Expected result: true; Actual result: " + v + ";");
153-
helper.assertViewBackgroundColor(v, lColor);
151+
TKUnit.assertEqual(v["text"], lText, "Expected result: true; Actual result: " + v + ";");
152+
TKUnit.assertEqual(v["textWrap"], true, "Expected result: true; Actual result: " + v + ";");
153+
helper.assertViewColor(v, lColor);
154154
};
155155

156156
export function test_parse_ShouldNotCrashWithoutExports() {

0 commit comments

Comments
 (0)