mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Refactored the Image module. Added image.fromUrl method. Added image-tests.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// <snippet name="file-system">
|
||||
// # File System
|
||||
// Using the file system requires the FileSystem module.
|
||||
// TODO: var fs = require("filesystem"); => this will break the intellisense of the tests
|
||||
// ``` JavaScript
|
||||
import fs = require("filesystem/file_system");
|
||||
// ```
|
||||
@@ -347,7 +348,7 @@ export var testGetParent = function () {
|
||||
TKUnit.assert(<any>file, "Failed to create file in the Documents folder.");
|
||||
// </hide>
|
||||
//// The parent folder of the file would be the documents folder.
|
||||
var parent = file.getParent();
|
||||
var parent = file.parent;
|
||||
// <hide>
|
||||
TKUnit.assert(documents == parent, "The parent folder should be the Documents folder.");
|
||||
file.remove();
|
||||
|
||||
Reference in New Issue
Block a user