mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Fixed incorrect reference to assertViewColor
This commit is contained in:
@ -138,7 +138,7 @@ export function test_loadWithAttributes() {
|
|||||||
var lWrap = true;
|
var lWrap = true;
|
||||||
var lColor = "#FF0000"; // red
|
var lColor = "#FF0000"; // red
|
||||||
var v = builder.load({
|
var v = builder.load({
|
||||||
path: "ui/label",
|
path: "tns_modules/ui/label",
|
||||||
name: "Label",
|
name: "Label",
|
||||||
attributes: {
|
attributes: {
|
||||||
text: lText,
|
text: lText,
|
||||||
@ -147,9 +147,10 @@ export function test_loadWithAttributes() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
TKUnit.assert(v instanceof Label, "Expected result: Label; Actual result: " + v + ";");
|
||||||
TKUnit.assertEqual(v.text, lText, "Expected result: true; Actual result: " + false + ";");
|
TKUnit.assertEqual(v.text, lText, "Expected result: true; Actual result: " + false + ";");
|
||||||
TKUnit.assertEqual(v.textWrap, lWrap, "Expected result: true; Actual result: " + false + ";");
|
TKUnit.assertEqual(v.textWrap, lWrap, "Expected result: true; Actual result: " + false + ";");
|
||||||
TKUnit.assertViewColor(v, lColor, "Expected result: true; Actual result: " + false + ";");
|
helper.assertViewColor(v, lColor, "Expected result: true; Actual result: " + false + ";");
|
||||||
};
|
};
|
||||||
|
|
||||||
export function test_parse_ShouldNotCrashWithoutExports() {
|
export function test_parse_ShouldNotCrashWithoutExports() {
|
||||||
|
Reference in New Issue
Block a user