diff --git a/tests/app/data/observable-array-tests.ts b/tests/app/data/observable-array-tests.ts
index e4156c05d..8b9df3d33 100644
--- a/tests/app/data/observable-array-tests.ts
+++ b/tests/app/data/observable-array-tests.ts
@@ -98,7 +98,7 @@ export var test_ObservableArray_joinShouldReturnStringWithAllItemsSeparatedWithC
// >> observable-array-join
var array = new observableArrayModule.ObservableArray([1, 2, 3]);
var result = array.join();
- // >> observable-array-join
+ // << observable-array-join
TKUnit.assert(result === "1,2,3", "ObservableArray join() should return string with all items separated with comma!");
};
diff --git a/tests/app/ui/list-view/list-view-tests.ts b/tests/app/ui/list-view/list-view-tests.ts
index a01b86fe5..caf84bef3 100644
--- a/tests/app/ui/list-view/list-view-tests.ts
+++ b/tests/app/ui/list-view/list-view-tests.ts
@@ -13,10 +13,10 @@ import { Page } from "ui/page";
import listViewModule = require("ui/list-view");
// << article-require-listview-module
-// >> article-require-modules
+// >> article-require-modules-listview
import observableArray = require("data/observable-array");
import labelModule = require("ui/label");
-// << article-require-modules
+// << article-require-modules-listview
// >> article-item-tap
function listViewItemTap(args) {
diff --git a/tests/app/ui/list-view/list-view.md b/tests/app/ui/list-view/list-view.md
index 0e3819e30..eb82b6bc2 100644
--- a/tests/app/ui/list-view/list-view.md
+++ b/tests/app/ui/list-view/list-view.md
@@ -9,7 +9,7 @@ previous_url: /ApiReference/ui/list-view/HOW-TO
Using a ListView requires the ListView module.
Other modules which will be used in the code samples in this article:
-
+
### Binding the ListView items property to collection in the view-model.
``` XML
diff --git a/tests/app/ui/repeater/repeater-tests.ts b/tests/app/ui/repeater/repeater-tests.ts
index ab970d905..da0b8d8ac 100644
--- a/tests/app/ui/repeater/repeater-tests.ts
+++ b/tests/app/ui/repeater/repeater-tests.ts
@@ -14,10 +14,10 @@ import { Label } from "ui/label";
import repeaterModule = require("ui/repeater");
// << article-require-repeater-module
-// >> article-require-modules
+// >> article-require-modules-repeater
import observableArray = require("data/observable-array");
import labelModule = require("ui/label");
-// << article-require-modules
+// << article-require-modules-repeater
var ASYNC = 0.2;
var FEW_ITEMS = [0, 1, 2];
diff --git a/tests/app/ui/repeater/repeater.md b/tests/app/ui/repeater/repeater.md
index d4b9af8d4..b0c5b3ab9 100644
--- a/tests/app/ui/repeater/repeater.md
+++ b/tests/app/ui/repeater/repeater.md
@@ -9,7 +9,7 @@ previous_url: /ApiReference/ui/repeater/HOW-TO
Using a Repeater requires the repeater module.
Other modules which will be used in the code samples in this article:
-
+
### Binding the Repeater items property to collection in the view-model.
``` XML
diff --git a/tests/app/ui/text-field/text-field-tests.ts b/tests/app/ui/text-field/text-field-tests.ts
index 609128ba1..85080ba31 100644
--- a/tests/app/ui/text-field/text-field-tests.ts
+++ b/tests/app/ui/text-field/text-field-tests.ts
@@ -15,12 +15,12 @@ import textFieldModule = require("ui/text-field");
// Other frequently used modules when working with buttons include:
import bindable = require("ui/core/bindable");
-// >> require-observable
+// >> require-observable-textfield
import observable = require("data/observable");
-// << require-observable
+// << require-observable-textfield
// ### Binding two TextFields text property to observable view-model property.
-// >> binding-text-property
+// >> binding-text-property-textfield
function pageLoaded(args) {
var page = args.object;
var obj = new observable.Observable();
@@ -28,7 +28,7 @@ function pageLoaded(args) {
page.bindingContext = obj;
}
exports.pageLoaded = pageLoaded;
-// << binding-text-property
+// << binding-text-property-textfield
var _createTextFieldFunc = function (): textFieldModule.TextField {
// >> creating-textfield
@@ -252,7 +252,7 @@ export var testBindHintDirectlyToModel = function () {
helper.buildUIAndRunTest(_createTextFieldFunc(), function (views: Array) {
var textField = views[0];
- // >> binding-hint-property
+ // >> binding-hint-property-textfield
var model = new observable.Observable();
model.set("hint", "type your username here");
var options: bindable.BindingOptions = {
@@ -271,7 +271,7 @@ export var testBindHintDirectlyToModel = function () {
TKUnit.assert(textField.hint === "type your password here", "Actual: " + textField.text + "; Expected: " + "type your password here");
TKUnit.assert(textFieldTestsNative.getNativeHint(textField) === "type your password here", "Actual: " + textFieldTestsNative.getNativeHint(textField) + "; Expected: " + "type your password here");
// << (hide)
- // << binding-hint-property
+ // << binding-hint-property-textfield
});
}
@@ -534,4 +534,4 @@ export var test_WhenFormattedTextPropertyChanges_TextIsUpdated_TextBase = functi
view.formattedText = null;
TKUnit.assertEqual(view.text, "");
});
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/text-field/text-field.md b/tests/app/ui/text-field/text-field.md
index bdf753a21..067720e83 100644
--- a/tests/app/ui/text-field/text-field.md
+++ b/tests/app/ui/text-field/text-field.md
@@ -8,7 +8,7 @@ previous_url: /ApiReference/ui/text-field/HOW-TO
# TextField
Using a TextField requires the text-field module.
-
+
### Binding two TextFields text property to observable view-model property.
```XML
@@ -18,7 +18,7 @@ Using a TextField requires the text-field module.
```
-
+
## Creating a TextField
### Setting the text of a TextField
@@ -30,7 +30,7 @@ Using a TextField requires the text-field module.
### Setting the hint of a TextField
### Binding hint property directly to model
-
+
### Setting the secure property of a TextField
### Binding secure property directly to model
diff --git a/tests/app/ui/text-view/text-view-tests.ts b/tests/app/ui/text-view/text-view-tests.ts
index 178304bb9..f03186e0f 100644
--- a/tests/app/ui/text-view/text-view-tests.ts
+++ b/tests/app/ui/text-view/text-view-tests.ts
@@ -13,9 +13,9 @@ import textViewModule = require("ui/text-view");
// Other frequently used modules when working with buttons include:
import bindable = require("ui/core/bindable");
-// >> require-observable
+// >> require-observable-textview
import observable = require("data/observable");
-// << require-observable
+// << require-observable-textview
// >> text-view-xml
//
@@ -96,7 +96,7 @@ export var testBindTextDirectlyToModel = function () {
helper.buildUIAndRunTest(_createTextViewFunc(), function (views: Array) {
var textView = views[0];
- // >> binding-text-property
+ // >> binding-text-property-textview
var model = new observable.Observable();
model.set("username", "john");
var options: bindable.BindingOptions = {
@@ -115,7 +115,7 @@ export var testBindTextDirectlyToModel = function () {
TKUnit.assert(textView.text === "mary", "Actual: " + textView.text + "; Expected: " + "mary");
TKUnit.assert(textViewTestsNative.getNativeText(textView) === "mary", "Actual: " + textViewTestsNative.getNativeText(textView) + "; Expected: " + "mary");
// << (hide)
- // >> binding-text-property
+ // << binding-text-property-textview
});
}
@@ -176,7 +176,7 @@ export var testBindHintDirectlyToModel = function () {
var textView = views[0];
textView.text = "";
- // >> binding-hint-property
+ // >> binding-hint-property-textview
var model = new observable.Observable();
model.set("hint", "type your username here");
var options: bindable.BindingOptions = {
@@ -195,7 +195,7 @@ export var testBindHintDirectlyToModel = function () {
TKUnit.assert(textView.hint === "type your password here", "Actual: " + textView.hint + "; Expected: " + "type your password here");
TKUnit.assert(textViewTestsNative.getNativeHint(textView) === "type your password here", "Actual: " + textViewTestsNative.getNativeHint(textView) + "; Expected: " + "type your password here");
// << (hide)
- // << binding-hint-property
+ // << binding-hint-property-textview
});
}
@@ -493,4 +493,4 @@ export function test_watch_listerer_is_removed_at_onDetach() {
editText.setText("FAIL");
});
}
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/text-view/text-view.md b/tests/app/ui/text-view/text-view.md
index 02741a7f6..b560e2839 100644
--- a/tests/app/ui/text-view/text-view.md
+++ b/tests/app/ui/text-view/text-view.md
@@ -8,7 +8,7 @@ previous_url: /ApiReference/ui/text-view/HOW-TO
# TextView
Using a TextView requires the text-view module.
-
+
### Binding two TextViews text property to observable view-model property.
@@ -17,11 +17,11 @@ Using a TextView requires the text-view module.
### Setting the text of a TextView
### Binding text property directly to model
-
+
### Setting the hint of a TextView
### Binding hint property directly to model
-
+
### Setting the editable property of a TextView
### Binding editable property directly to model