Skip to content

Commit 511faab

Browse files
author
Vladimir Enchev
committed
snippets fixed
1 parent 60c7bdd commit 511faab

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

apps/tests/ui/html-view/html-view-tests.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import htmlViewModule = require("ui/html-view");
1111
// ```
1212
// </snippet>
1313

14+
// <snippet module="ui/html-view" title="HtmlView">
1415
// ### Declaring a HtmlView.
1516
//```XML
1617
// <Page>
@@ -45,6 +46,8 @@ export var testLoadHTMLString = function () {
4546
// ### Using HtmlView
4647
// ``` JavaScript
4748
htmlView.html = '<span><font color="#ff0000">Test</font></span>';
49+
// ```
50+
// </snippet>
4851

4952
helper.goBack();
5053

apps/tests/ui/web-view/web-view-tests.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import webViewModule = require("ui/web-view");
1010
// ```
1111
// </snippet>
1212

13+
// <snippet module="ui/web-view" title="WebView">
1314
// ### Declaring a WebView.
1415
//```XML
1516
// <Page>
@@ -60,9 +61,10 @@ export var testLoadExistingUrl = function () {
6061
else {
6162
message = "Error loading " + args.url + ": " + args.error;
6263
}
63-
//console.log(message);
6464
});
6565
webView.url = "http://nsbuild01.telerik.com/docs/";
66+
// ```
67+
// </snippet>
6668

6769
TKUnit.wait(4);
6870

@@ -117,9 +119,10 @@ export var testLoadLocalFile = function () {
117119
else {
118120
message = "Error loading " + args.url + ": " + args.error;
119121
}
120-
//console.log(message);
121122
});
122123
webView.src = "~/ui/web-view/test.html";
124+
// ```
125+
// </snippet>
123126

124127
TKUnit.wait(4);
125128

@@ -178,9 +181,10 @@ export var testLoadHTMLString = function () {
178181
else {
179182
message = "Error loading " + args.url + ": " + args.error;
180183
}
181-
//console.log(message);
182184
});
183185
webView.src = '<!DOCTYPE html><html><head><title>MyTitle</title><meta charset="utf-8" /></head><body><span style="color:red">Test</span></body></html>';
186+
// ```
187+
// </snippet>
184188

185189
TKUnit.wait(4);
186190

0 commit comments

Comments
 (0)