Skip to content

Commit f87eb2d

Browse files
committed
Fix unclosed snippet tags and duplicate snippets.
1 parent a497429 commit f87eb2d

File tree

9 files changed

+27
-27
lines changed

9 files changed

+27
-27
lines changed

tests/app/data/observable-array-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export var test_ObservableArray_joinShouldReturnStringWithAllItemsSeparatedWithC
9898
// >> observable-array-join
9999
var array = new observableArrayModule.ObservableArray([1, 2, 3]);
100100
var result = array.join();
101-
// >> observable-array-join
101+
// << observable-array-join
102102
TKUnit.assert(result === "1,2,3", "ObservableArray join() should return string with all items separated with comma!");
103103
};
104104

tests/app/ui/list-view/list-view-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import { Page } from "ui/page";
1313
import listViewModule = require("ui/list-view");
1414
// << article-require-listview-module
1515

16-
// >> article-require-modules
16+
// >> article-require-modules-listview
1717
import observableArray = require("data/observable-array");
1818
import labelModule = require("ui/label");
19-
// << article-require-modules
19+
// << article-require-modules-listview
2020

2121
// >> article-item-tap
2222
function listViewItemTap(args) {

tests/app/ui/list-view/list-view.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ previous_url: /ApiReference/ui/list-view/HOW-TO
99
Using a ListView requires the ListView module.
1010
<snippet id='article-require-listview-module'/>
1111
Other modules which will be used in the code samples in this article:
12-
<snippet id='article-require-modules'/>
12+
<snippet id='article-require-modules-listview'/>
1313
### Binding the ListView items property to collection in the view-model.
1414
``` XML
1515
<Page>

tests/app/ui/repeater/repeater-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import { Label } from "ui/label";
1414
import repeaterModule = require("ui/repeater");
1515
// << article-require-repeater-module
1616

17-
// >> article-require-modules
17+
// >> article-require-modules-repeater
1818
import observableArray = require("data/observable-array");
1919
import labelModule = require("ui/label");
20-
// << article-require-modules
20+
// << article-require-modules-repeater
2121

2222
var ASYNC = 0.2;
2323
var FEW_ITEMS = [0, 1, 2];

tests/app/ui/repeater/repeater.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ previous_url: /ApiReference/ui/repeater/HOW-TO
99
Using a Repeater requires the repeater module.
1010
<snippet id='article-require-repeater-module'/>
1111
Other modules which will be used in the code samples in this article:
12-
<snippet id='article-require-modules'/>
12+
<snippet id='article-require-modules-repeater'/>
1313
### Binding the Repeater items property to collection in the view-model.
1414
``` XML
1515
<Page>

tests/app/ui/text-field/text-field-tests.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ import textFieldModule = require("ui/text-field");
1515
// Other frequently used modules when working with buttons include:
1616

1717
import bindable = require("ui/core/bindable");
18-
// >> require-observable
18+
// >> require-observable-textfield
1919
import observable = require("data/observable");
20-
// << require-observable
20+
// << require-observable-textfield
2121

2222
// ### Binding two TextFields text property to observable view-model property.
23-
// >> binding-text-property
23+
// >> binding-text-property-textfield
2424
function pageLoaded(args) {
2525
var page = args.object;
2626
var obj = new observable.Observable();
2727
obj.set("someProperty", "Please change this text!");
2828
page.bindingContext = obj;
2929
}
3030
exports.pageLoaded = pageLoaded;
31-
// << binding-text-property
31+
// << binding-text-property-textfield
3232

3333
var _createTextFieldFunc = function (): textFieldModule.TextField {
3434
// >> creating-textfield
@@ -252,7 +252,7 @@ export var testBindHintDirectlyToModel = function () {
252252
helper.buildUIAndRunTest(_createTextFieldFunc(), function (views: Array<viewModule.View>) {
253253
var textField = <textFieldModule.TextField>views[0];
254254

255-
// >> binding-hint-property
255+
// >> binding-hint-property-textfield
256256
var model = new observable.Observable();
257257
model.set("hint", "type your username here");
258258
var options: bindable.BindingOptions = {
@@ -271,7 +271,7 @@ export var testBindHintDirectlyToModel = function () {
271271
TKUnit.assert(textField.hint === "type your password here", "Actual: " + textField.text + "; Expected: " + "type your password here");
272272
TKUnit.assert(textFieldTestsNative.getNativeHint(textField) === "type your password here", "Actual: " + textFieldTestsNative.getNativeHint(textField) + "; Expected: " + "type your password here");
273273
// << (hide)
274-
// << binding-hint-property
274+
// << binding-hint-property-textfield
275275
});
276276
}
277277

@@ -534,4 +534,4 @@ export var test_WhenFormattedTextPropertyChanges_TextIsUpdated_TextBase = functi
534534
view.formattedText = null;
535535
TKUnit.assertEqual(view.text, "");
536536
});
537-
}
537+
}

tests/app/ui/text-field/text-field.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ previous_url: /ApiReference/ui/text-field/HOW-TO
88
# TextField
99
Using a TextField requires the text-field module.
1010
<snippet id='require-textfield'/>
11-
<snippet id='require-observable'/>
11+
<snippet id='require-observable-textfield'/>
1212
### Binding two TextFields text property to observable view-model property.
1313
```XML
1414
<Page loaded="pageLoaded">
@@ -18,7 +18,7 @@ Using a TextField requires the text-field module.
1818
</StackLayout>
1919
</Page>
2020
```
21-
<snippet id='binding-text-property'/>
21+
<snippet id='binding-text-property-textfield'/>
2222
## Creating a TextField
2323
<snippet id='creating-textfield'/>
2424
### Setting the text of a TextField
@@ -30,7 +30,7 @@ Using a TextField requires the text-field module.
3030
### Setting the hint of a TextField
3131
<snippet id='setting-hint-text'/>
3232
### Binding hint property directly to model
33-
<snippet id='binding-hint-property'/>
33+
<snippet id='binding-hint-property-textfield'/>
3434
### Setting the secure property of a TextField
3535
<snippet id='setting-secure-property'/>
3636
### Binding secure property directly to model

tests/app/ui/text-view/text-view-tests.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import textViewModule = require("ui/text-view");
1313

1414
// Other frequently used modules when working with buttons include:
1515
import bindable = require("ui/core/bindable");
16-
// >> require-observable
16+
// >> require-observable-textview
1717
import observable = require("data/observable");
18-
// << require-observable
18+
// << require-observable-textview
1919

2020
// >> text-view-xml
2121
// <Page loaded="pageLoaded">
@@ -96,7 +96,7 @@ export var testBindTextDirectlyToModel = function () {
9696
helper.buildUIAndRunTest(_createTextViewFunc(), function (views: Array<viewModule.View>) {
9797
var textView = <textViewModule.TextView>views[0];
9898

99-
// >> binding-text-property
99+
// >> binding-text-property-textview
100100
var model = new observable.Observable();
101101
model.set("username", "john");
102102
var options: bindable.BindingOptions = {
@@ -115,7 +115,7 @@ export var testBindTextDirectlyToModel = function () {
115115
TKUnit.assert(textView.text === "mary", "Actual: " + textView.text + "; Expected: " + "mary");
116116
TKUnit.assert(textViewTestsNative.getNativeText(textView) === "mary", "Actual: " + textViewTestsNative.getNativeText(textView) + "; Expected: " + "mary");
117117
// << (hide)
118-
// >> binding-text-property
118+
// << binding-text-property-textview
119119
});
120120
}
121121

@@ -176,7 +176,7 @@ export var testBindHintDirectlyToModel = function () {
176176
var textView = <textViewModule.TextView>views[0];
177177
textView.text = "";
178178

179-
// >> binding-hint-property
179+
// >> binding-hint-property-textview
180180
var model = new observable.Observable();
181181
model.set("hint", "type your username here");
182182
var options: bindable.BindingOptions = {
@@ -195,7 +195,7 @@ export var testBindHintDirectlyToModel = function () {
195195
TKUnit.assert(textView.hint === "type your password here", "Actual: " + textView.hint + "; Expected: " + "type your password here");
196196
TKUnit.assert(textViewTestsNative.getNativeHint(textView) === "type your password here", "Actual: " + textViewTestsNative.getNativeHint(textView) + "; Expected: " + "type your password here");
197197
// << (hide)
198-
// << binding-hint-property
198+
// << binding-hint-property-textview
199199
});
200200
}
201201

@@ -493,4 +493,4 @@ export function test_watch_listerer_is_removed_at_onDetach() {
493493
editText.setText("FAIL");
494494
});
495495
}
496-
}
496+
}

tests/app/ui/text-view/text-view.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ previous_url: /ApiReference/ui/text-view/HOW-TO
88
# TextView
99
Using a TextView requires the text-view module.
1010
<snippet id='require-textmodules'/>
11-
<snippet id='require-observable'/>
11+
<snippet id='require-observable-textview'/>
1212
### Binding two TextViews text property to observable view-model property.
1313
<snippet id='text-view-xml'/>
1414
<snippet id='observable-declare'/>
@@ -17,11 +17,11 @@ Using a TextView requires the text-view module.
1717
### Setting the text of a TextView
1818
<snippet id='set-text-value'/>
1919
### Binding text property directly to model
20-
<snippet id='binding-text-property'/>
20+
<snippet id='binding-text-property-textview'/>
2121
### Setting the hint of a TextView
2222
<snippet id='set-textview-hint'/>
2323
### Binding hint property directly to model
24-
<snippet id='binding-hint-property'/>
24+
<snippet id='binding-hint-property-textview'/>
2525
### Setting the editable property of a TextView
2626
<snippet id='setting-editable-property'/>
2727
### Binding editable property directly to model

0 commit comments

Comments
 (0)