diff --git a/apps/tests/ui/image/image-tests.ts b/apps/tests/ui/image/image-tests.ts
index 02aad972e..c37438ecd 100644
--- a/apps/tests/ui/image/image-tests.ts
+++ b/apps/tests/ui/image/image-tests.ts
@@ -92,6 +92,33 @@ export var test_SettingImageUrl = function (done) {
setTimeout(() => { helper.buildUIAndRunTest(image, testFunc) }, 3000);
}
+export var test_SettingImageUrlToFileWithinApp = function (done) {
+ //
+ // ### How to create an image and set its url to file within the application.
+ // ``` JavaScript
+ var image = new ImageModule.Image();
+ image.url = "~/app/small-image.png";
+ // ```
+ //
+
+ var imageIsLoaded = false;
+
+ var testFunc = function (views: Array) {
+ var testImage = views[0];
+ imageIsLoaded = !!testImage.source;
+ try {
+ TKUnit.assert(imageIsLoaded === true, "Expected: true, Actual: " + imageIsLoaded);
+ done(null);
+ }
+ catch (e) {
+ done(e);
+ }
+ }
+
+ // wait for a second in order to download the image.
+ setTimeout(() => { helper.buildUIAndRunTest(image, testFunc) }, 3000);
+}
+
export var test_SettingStretch_AspectFit = function () {
//
// ### How to set image stretching.