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
parent 9f7ce6fc60
commit 69aa327b55

View File

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