Require ui/label instead of tns_modules/tns-core-modules/ui/label in tests

This commit is contained in:
ivanbuhov
2017-01-20 16:29:26 +02:00
committed by vchimev
parent 602132b016
commit e267828c08

View File

@@ -127,7 +127,7 @@ export function test_loadWithOptionsFromTNS() {
export function test_loadWithOptionsFromTNSPath() {
var v = builder.load({
path: "tns_modules/ui/label",
path: "ui/label",
name: "Label"
});
@@ -140,7 +140,7 @@ export function test_loadWithAttributes() {
var lColor = "#FF0000"; // red
var v = builder.load({
path: "tns_modules/ui/label",
path: "ui/label",
name: "Label",
attributes: {
text: lText,
@@ -518,7 +518,7 @@ export function test_parse_ShouldParseCustomComponentWithoutXml() {
};
export function test_parse_ShouldParseCustomComponentWithoutXmlFromTNSModules() {
var p = <Page>builder.parse('<Page xmlns' + ':customControls="tns_modules/ui/label"><customControls:Label /></Page>');
var p = <Page>builder.parse('<Page xmlns' + ':customControls="ui/label"><customControls:Label /></Page>');
var ctrl = p.content;
TKUnit.assert(ctrl instanceof Label, "Expected result: custom control is defined!; Actual result: " + ctrl);