diff --git a/apps/tests/file-system-tests.ts b/apps/tests/file-system-tests.ts
index b99e4fca8b..142983a329 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
diff --git a/apps/tests/ui/action-bar/action-bar.md b/apps/tests/ui/action-bar/action-bar.md
index d15f5153bd..a79013c0fc 100644
--- a/apps/tests/ui/action-bar/action-bar.md
+++ b/apps/tests/ui/action-bar/action-bar.md
@@ -53,7 +53,7 @@ The icon can only be set in Android platform. It is hidden by default, but you e
```
-The position option is platform specific. The available values are as follows:
+The position option is platform-specific. The available values are as follows:
* **Android** - `actionBar`, `actionBarIfRoom` and `popup`. The default is `actionBar`.
* **iOS** - `left` and `right`. The default is `left`.
@@ -77,32 +77,31 @@ The position option is platform specific. The available values are as follows:
Set `ios.systemIcon` to a number representing the iOS system item to be displayed.
Use this property instead of `ActionItem.icon` if you want to diplsay a built-in iOS system icon.
Note: systemIcon is not supported on NavigationButton in iOS
-The value should be a number from the `UIBarButtonSystemItem` enumeration
-(https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIBarButtonItem_Class/#//apple_ref/c/tdef/UIBarButtonSystemItem)
-0: Done
-1: Cancel
-2: Edit
-3: Save
-4: Add
-5: FlexibleSpace
-6: FixedSpace
-7: Compose
-8: Reply
-9: Action
-10: Organize
-11: Bookmarks
-12: Search
-13: Refresh
-14: Stop
-15: Camera
-16: Trash
-17: Play
-18: Pause
-19: Rewind
-20: FastForward
-21: Undo
-22: Redo
-23: PageCurl
+The value should be a number from the [UIBarButtonSystemItem](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIBarButtonItem_Class/#//apple_ref/c/tdef/UIBarButtonSystemItem) enumeration:
+0: `Done`
+1: `Cancel`
+2: `Edit`
+3: `Save`
+4: `Add`
+5: `FlexibleSpace`
+6: `FixedSpace`
+7: `Compose`
+8: `Reply`
+9: `Action`
+10: `Organize`
+11: `Bookmarks`
+12: `Search`
+13: `Refresh`
+14: `Stop`
+15: `Camera`
+16: `Trash`
+17: `Play`
+18: `Pause`
+19: `Rewind`
+20: `FastForward`
+21: `Undo`
+22: `Redo`
+23: `PageCurl`
### Android
Set `android.systemIcon` the name of the system drawable resource to be displayed.
diff --git a/apps/tests/ui/border/border.md b/apps/tests/ui/border/border.md
index 1656a157ef..b619d8f0a5 100644
--- a/apps/tests/ui/border/border.md
+++ b/apps/tests/ui/border/border.md
@@ -4,7 +4,7 @@ title: "border"
description: "Examples for using Border"
---
# Border
-Using borders requires the "ui/border" module.
+Using borders requires the Border module.
### Declaring a Border.
diff --git a/apps/tests/ui/image/image.md b/apps/tests/ui/image/image.md
index cd004bc9a6..48ba7cb847 100644
--- a/apps/tests/ui/image/image.md
+++ b/apps/tests/ui/image/image.md
@@ -22,17 +22,17 @@ Binding the image source property to a view-model property.
```
-### How to create an image and set its source.
+### Creating an image and setting its source
-### How to create an image and set its src.
+### Creating an image and setting its src
-### How to create an image and set its src to file within the application.
+### Creating an image and setting its src to a file within the application
-### How to create an image and set its src to Data URI.
+### Creating an image and setting its src to Data URI
-### How to set image stretching.
+### Setting image stretching
diff --git a/apps/tests/ui/label/label.md b/apps/tests/ui/label/label.md
index d37bc8f991..b15fd62e1c 100644
--- a/apps/tests/ui/label/label.md
+++ b/apps/tests/ui/label/label.md
@@ -13,20 +13,20 @@ Using a label requires the Label module.
{%raw%}{%endraw%}
```
-### How to set label text content
+### Setting the label text content
-### How to turn on text wrapping for a label
+### Turning on text wrapping for a label
-### How to style a label via css class
+### Styling a label via css class
-### How to style a label via css type
+### Styling a label via css type
-### How to style a label via css control identifier
+### Styling a label via css control identifier
-### How to bind text property of a label to an observable model
+### Binding text property of a label to an observable model
diff --git a/apps/tests/ui/layouts/absolute-layout.md b/apps/tests/ui/layouts/absolute-layout.md
index e78c557d73..50a9ed977e 100644
--- a/apps/tests/ui/layouts/absolute-layout.md
+++ b/apps/tests/ui/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/ui/layouts/dock-layout.md b/apps/tests/ui/layouts/dock-layout.md
index 95ceee8a19..fe46dc420e 100644
--- a/apps/tests/ui/layouts/dock-layout.md
+++ b/apps/tests/ui/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/ui/layouts/grid-layout.md b/apps/tests/ui/layouts/grid-layout.md
index 90b55863a2..882af3db4f 100644
--- a/apps/tests/ui/layouts/grid-layout.md
+++ b/apps/tests/ui/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
@@ -18,20 +18,20 @@ description: "Examples for using grid-layout"
```
-### Add views to grid layout
+## Add views to grid layout
-### Set column property on views - btn1 in first column, btn2 is second and btn3 in third
+## Set column property on views - btn1 in first column, btn2 is second and btn3 in third
-### Set row property on btn4.
+## Set row property on btn4.
-### Set columnSpan property on btn4 to stretch into all columns
+## Set columnSpan property on btn4 to stretch into all columns
-### Create ItemSpec for columns and rows 3 columns - 80px, *, auto size and 2 rows - 100px and auto size
+## Create ItemSpec for columns and rows 3 columns - 80px, *, auto size and 2 rows - 100px and auto size
-### Add columns and rows to GridLayout
+## Add columns and rows to GridLayout
diff --git a/apps/tests/ui/layouts/stack-layout-tests.ts b/apps/tests/ui/layouts/stack-layout-tests.ts
index 8a0be9256c..17ea8eecdf 100644
--- a/apps/tests/ui/layouts/stack-layout-tests.ts
+++ b/apps/tests/ui/layouts/stack-layout-tests.ts
@@ -161,9 +161,11 @@ export class StackLayoutTest extends testModule.UITest {
}
public test_codesnippets() {
+ // >> stack-layout-require
+ // var StackLayout = require("ui/layouts/stack-layout").StackLayout;
+ // << stack-layout-require
// >> stack-layout-new
- // var StackLayout = require("ui/layouts/stack-layout").StackLayout;
// >> (hide)
// var Button = require("ui/button").Button;
// << (hide)
diff --git a/apps/tests/ui/layouts/stack-layout.md b/apps/tests/ui/layouts/stack-layout.md
index 522ff65d99..b7063db16b 100644
--- a/apps/tests/ui/layouts/stack-layout.md
+++ b/apps/tests/ui/layouts/stack-layout.md
@@ -3,12 +3,10 @@ nav-title: "stack-layout How-To"
title: "stack-layout"
description: "Examples for using stack-layout"
---
-### import StackLayout and Button classes
-var StackLayout = require("ui/layouts/stack-layout").StackLayout;
-var Button = require("ui/button").Button;
-### Create StackLayout
-
-
+# StackLayout
+Using a StackLayout requires the StackLayout module.
+
+
### Declaring a StackLayout.
``` XML
@@ -18,12 +16,15 @@ var Button = require("ui/button").Button;
```
-### Add child view to layout
+## Create StackLayout
+
+
+## Add child view to layout
-### Remove child view from layout
+## Remove child view from layout
-### Change layout orientation to Horizontal
+## Change layout orientation to Horizontal
diff --git a/apps/tests/ui/layouts/wrap-layout.md b/apps/tests/ui/layouts/wrap-layout.md
index c43fb29210..c136232f50 100644
--- a/apps/tests/ui/layouts/wrap-layout.md
+++ b/apps/tests/ui/layouts/wrap-layout.md
@@ -7,12 +7,6 @@ description: "Examples for using WrapLayout"
Using a WrapLayout requires the WrapLayout module.
-Other frequently used modules when working with a WrapLayout include:
-
-
-## Creating a WrapLayout
-
-
### Declaring a WrapLayout.
``` XML
@@ -25,5 +19,11 @@ Other frequently used modules when working with a WrapLayout include:
```
+Other frequently used modules when working with a WrapLayout include:
+
+
+## Creating a WrapLayout
+
+
## Setting the orientation of a wrap-layout.
diff --git a/apps/tests/ui/scroll-view/scroll-view.md b/apps/tests/ui/scroll-view/scroll-view.md
index bf2132dc8e..e6064019cc 100644
--- a/apps/tests/ui/scroll-view/scroll-view.md
+++ b/apps/tests/ui/scroll-view/scroll-view.md
@@ -6,7 +6,7 @@ description: "Examples for using scroll-view"
# ScrollView
Using a ScrollView requires the ScrollView module.
-### Declaring the ScrollView.
+### Declaring the ScrollView
``` XML