File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import htmlViewModule = require("ui/html-view");
11
11
// ```
12
12
// </snippet>
13
13
14
+ // <snippet module="ui/html-view" title="HtmlView">
14
15
// ### Declaring a HtmlView.
15
16
//```XML
16
17
// <Page>
@@ -45,6 +46,8 @@ export var testLoadHTMLString = function () {
45
46
// ### Using HtmlView
46
47
// ``` JavaScript
47
48
htmlView . html = '<span><font color="#ff0000">Test</font></span>' ;
49
+ // ```
50
+ // </snippet>
48
51
49
52
helper . goBack ( ) ;
50
53
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import webViewModule = require("ui/web-view");
10
10
// ```
11
11
// </snippet>
12
12
13
+ // <snippet module="ui/web-view" title="WebView">
13
14
// ### Declaring a WebView.
14
15
//```XML
15
16
// <Page>
@@ -60,9 +61,10 @@ export var testLoadExistingUrl = function () {
60
61
else {
61
62
message = "Error loading " + args . url + ": " + args . error ;
62
63
}
63
- //console.log(message);
64
64
} ) ;
65
65
webView . url = "http://nsbuild01.telerik.com/docs/" ;
66
+ // ```
67
+ // </snippet>
66
68
67
69
TKUnit . wait ( 4 ) ;
68
70
@@ -117,9 +119,10 @@ export var testLoadLocalFile = function () {
117
119
else {
118
120
message = "Error loading " + args . url + ": " + args . error ;
119
121
}
120
- //console.log(message);
121
122
} ) ;
122
123
webView . src = "~/ui/web-view/test.html" ;
124
+ // ```
125
+ // </snippet>
123
126
124
127
TKUnit . wait ( 4 ) ;
125
128
@@ -178,9 +181,10 @@ export var testLoadHTMLString = function () {
178
181
else {
179
182
message = "Error loading " + args . url + ": " + args . error ;
180
183
}
181
- //console.log(message);
182
184
} ) ;
183
185
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>
184
188
185
189
TKUnit . wait ( 4 ) ;
186
190
You can’t perform that action at this time.
0 commit comments