From e2b004be22d97b3a111cf9e472b9713f625a7ffd Mon Sep 17 00:00:00 2001 From: Peter Kanev Date: Thu, 5 May 2016 14:49:21 +0300 Subject: [PATCH 1/5] update file-system segment where checking if a file exists would always return 'true' --- apps/tests/file-system-tests.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/tests/file-system-tests.ts b/apps/tests/file-system-tests.ts index b99e4fca8..142983a32 100644 --- a/apps/tests/file-system-tests.ts +++ b/apps/tests/file-system-tests.ts @@ -336,12 +336,13 @@ export var testFileNameExtension = function () { export var testFileExists = function () { // >> file-system-fileexists var documents = fs.knownFolders.documents(); - var file = documents.getFile("Test.txt"); - var exists = fs.File.exists(file.path); + var filePath = fs.path.join(documents.path, "Test.txt"); + var exists = fs.File.exists(filePath); // >> (hide) - TKUnit.assert(exists, "File.exists API not working."); - exists = fs.File.exists(file.path + "_"); TKUnit.assert(!exists, "File.exists API not working."); + var file = documents.getFile("Test.txt"); + exists = fs.File.exists(file.path); + TKUnit.assert(exists, "File.exists API not working."); file.remove(); // << (hide) // << file-system-fileexists From e18ed0abfcf2a4c15257a372a61fbfbd158af87b Mon Sep 17 00:00:00 2001 From: Peter Kanev Date: Thu, 5 May 2016 15:24:52 +0300 Subject: [PATCH 2/5] make articles consistent in structure --- apps/tests/layouts/absolute-layout.md | 5 +++-- apps/tests/layouts/dock-layout.md | 2 +- apps/tests/layouts/grid-layout.md | 18 +++++++++--------- apps/tests/layouts/stack-layout-tests.ts | 4 +++- apps/tests/layouts/stack-layout.md | 19 ++++++++++--------- apps/tests/layouts/wrap-layout.md | 12 ++++++------ 6 files changed, 32 insertions(+), 28 deletions(-) diff --git a/apps/tests/layouts/absolute-layout.md b/apps/tests/layouts/absolute-layout.md index e78c557d7..50a9ed977 100644 --- a/apps/tests/layouts/absolute-layout.md +++ b/apps/tests/layouts/absolute-layout.md @@ -1,12 +1,13 @@ --- nav-title: "absolute-layout How-To" -title: "absolute-layoyt" +title: "absolute-layout" description: "Examples for using absolute-layout" --- # AbsoluteLayout -Using a AbsoluteLayout requires the AbsoluteLayout module. +Using an AbsoluteLayout requires the AbsoluteLayout module. +### Declaring an AbsoluteLayout ``` XML diff --git a/apps/tests/layouts/dock-layout.md b/apps/tests/layouts/dock-layout.md index 95ceee8a1..fe46dc420 100644 --- a/apps/tests/layouts/dock-layout.md +++ b/apps/tests/layouts/dock-layout.md @@ -7,7 +7,7 @@ description: "Examples for using dock-layout" Using a DockLayout requires the DockLayout module. -### Declaring a DockLayout. +### Declaring a DockLayout ``` XML diff --git a/apps/tests/layouts/grid-layout.md b/apps/tests/layouts/grid-layout.md index 90b55863a..882af3db4 100644 --- a/apps/tests/layouts/grid-layout.md +++ b/apps/tests/layouts/grid-layout.md @@ -3,11 +3,11 @@ nav-title: "grid-layout How-To" title: "grid-layout" description: "Examples for using grid-layout" --- -## GridLayout sample -### Creating Grid Layout via code. +# GridLayout +Using a GridLayout requires the GridLayout module. -### Create grid layout with an xml declaration +### Declaring a GridLayout ``` XML