Fix tests app paths

This commit is contained in:
Erjan Gavalji
2015-03-24 16:05:54 +02:00
parent cb25cfc64d
commit d5af4c4723
20 changed files with 33 additions and 33 deletions

View File

@@ -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>

View File

@@ -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);
});

View File

@@ -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.");