mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix tests app paths
This commit is contained in:
@@ -13,9 +13,9 @@ import ImageModule = require("ui/image");
|
||||
// <!--Bind the image source property to view-model property -->
|
||||
// {%raw%}<Image src="{{ thumbnailImageUrl }}" />{%endraw%}
|
||||
// <!--Load form image from application -->
|
||||
// <Image source="~/app/logo.png" stretch ="none" / >
|
||||
// <Image source="~/logo.png" stretch ="none" / >
|
||||
// <!--Load form image resource -->
|
||||
// <Image source="res://app/logo.png" stretch ="none" / >
|
||||
// <Image source="res://logo.png" stretch ="none" / >
|
||||
// <!--Load form image URL-->
|
||||
// <Image source="http://www.google.com/images/errors/logo_sm_2.png" stretch ="none" />
|
||||
// </StackLayout>
|
||||
@@ -106,7 +106,7 @@ export var test_SettingImageSrcToFileWithinApp = function (done) {
|
||||
// ### How to create an image and set its src to file within the application.
|
||||
// ``` JavaScript
|
||||
var image = new ImageModule.Image();
|
||||
image.src = "~/app/logo.png";
|
||||
image.src = "~/logo.png";
|
||||
// ```
|
||||
// </snippet>
|
||||
|
||||
|
||||
@@ -477,7 +477,7 @@ export var testLocalTextAlignmentFromCssWhenAddingCssFileAllSelectorsAreApplied
|
||||
view.id = "testLabel";
|
||||
var page = <page.Page>views[1];
|
||||
page.addCss("#testLabel { text-align: " + expectedTextAlignment + "; }");
|
||||
page.addCssFile("/app/tests/ui/label/label-tests.css");
|
||||
page.addCssFile("/tests/ui/label/label-tests.css");
|
||||
|
||||
var actualResult = view.style.textAlignment;
|
||||
// actual result is taken from #testLabel tag, because it has a greater priority (id vs type).
|
||||
@@ -513,7 +513,7 @@ export var testErrorMessageWhenWrongCssIsAddedWithFile = function () {
|
||||
view.id = "testLabel";
|
||||
var page = <page.Page>views[1];
|
||||
errorMessage = undefined;
|
||||
page.addCssFile("/app/tests/ui/label/label-tests-wrong.css");
|
||||
page.addCssFile("/tests/ui/label/label-tests-wrong.css");
|
||||
|
||||
TKUnit.assertNotEqual(errorMessage, undefined);
|
||||
});
|
||||
|
||||
@@ -237,7 +237,7 @@ export var test_FrameBackStack_WhenNavigatingForwardAndBack = function () {
|
||||
}
|
||||
|
||||
export var test_LoadPageFromModule = function () {
|
||||
helper.navigateToModule("app/ui/page/test-page-module");
|
||||
helper.navigateToModule("ui/page/test-page-module");
|
||||
try {
|
||||
var topFrame = FrameModule.topmost();
|
||||
TKUnit.assert(topFrame.currentPage.content instanceof LabelModule.Label, "Content of the test page should be a Label created within test-page-module.");
|
||||
|
||||
Reference in New Issue
Block a user