mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Require ui/label instead of tns_modules/tns-core-modules/ui/label in tests
This commit is contained in:
@@ -127,7 +127,7 @@ export function test_loadWithOptionsFromTNS() {
|
|||||||
|
|
||||||
export function test_loadWithOptionsFromTNSPath() {
|
export function test_loadWithOptionsFromTNSPath() {
|
||||||
var v = builder.load({
|
var v = builder.load({
|
||||||
path: "tns_modules/ui/label",
|
path: "ui/label",
|
||||||
name: "Label"
|
name: "Label"
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -140,7 +140,7 @@ export function test_loadWithAttributes() {
|
|||||||
var lColor = "#FF0000"; // red
|
var lColor = "#FF0000"; // red
|
||||||
|
|
||||||
var v = builder.load({
|
var v = builder.load({
|
||||||
path: "tns_modules/ui/label",
|
path: "ui/label",
|
||||||
name: "Label",
|
name: "Label",
|
||||||
attributes: {
|
attributes: {
|
||||||
text: lText,
|
text: lText,
|
||||||
@@ -518,7 +518,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/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);
|
||||||
|
|||||||
Reference in New Issue
Block a user