diff --git a/apps/tests/layouts/absolute-layout-tests.ts b/apps/tests/layouts/absolute-layout-tests.ts
index 829ffa617..c85b61705 100644
--- a/apps/tests/layouts/absolute-layout-tests.ts
+++ b/apps/tests/layouts/absolute-layout-tests.ts
@@ -14,6 +14,16 @@ import absoluteLayoutModule = require("ui/layouts/absolute-layout");
// ```
//
+// ### Declaring a AbsoluteLayout.
+//```XML
+//
+//
+//
+//
+//
+//```
+//
+
export var testAll = function () {
//
// ## Creating and populating a AbsoluteLayout with children
@@ -50,7 +60,7 @@ export var testAll = function () {
TKUnit.assertEqual(actualValue.top, 10 * density, "ActualTop");
TKUnit.assertEqual(width, 100 * density, "ActualWidth");
TKUnit.assertEqual(height, 100 * density, "Actualheight");
- });
+ });
}
export function test_padding() {
@@ -75,5 +85,5 @@ export function test_padding() {
layoutHelper.assertMeasure(btn, 100, 100);
layoutHelper.assertLayout(btn, 25, 35, 100, 100);
- });
+ });
}
diff --git a/apps/tests/layouts/dock-layout-tests.ts b/apps/tests/layouts/dock-layout-tests.ts
index 01ead78c4..a352e7161 100644
--- a/apps/tests/layouts/dock-layout-tests.ts
+++ b/apps/tests/layouts/dock-layout-tests.ts
@@ -11,6 +11,20 @@ import navHelper = require("../ui/helper");
import dockModule = require("ui/layouts/dock-layout");
// ```
+// ### Declaring a DockLayout.
+//```XML
+//
+//
+//
+
// Other frequently used modules when working with a DockLayout include:
// ``` JavaScript
import enums = require("ui/enums");
diff --git a/apps/tests/layouts/grid-layout-tests.ts b/apps/tests/layouts/grid-layout-tests.ts
index c356ed370..afc5a177d 100644
--- a/apps/tests/layouts/grid-layout-tests.ts
+++ b/apps/tests/layouts/grid-layout-tests.ts
@@ -505,6 +505,18 @@ export var test_codesnippets = function () {
var gridLayout = new layout.GridLayout();
// ```
+ // ### Create grid layout with an xml declaration
+ // ``` XML
+ //
+ //
+ //
+ //
+ //// by default column and row are set to 0
+ //
+ //
+ // ```
+ //
+
// ### Add views to grid layout
// ``` JavaScript
var btn1 = new button.Button();
@@ -557,16 +569,4 @@ export var test_codesnippets = function () {
gridLayout.addRow(firstRow);
gridLayout.addRow(secondRow);
// ```
-
- // ### Create same grid layout with an xml declaration
- // ``` XML
- //
- //
- //
- //
- //// by default column and row are set to 0
- //
- //
- // ```
- //
};
\ No newline at end of file
diff --git a/apps/tests/layouts/stack-layout-tests.ts b/apps/tests/layouts/stack-layout-tests.ts
index 88289d61a..2439a58a3 100644
--- a/apps/tests/layouts/stack-layout-tests.ts
+++ b/apps/tests/layouts/stack-layout-tests.ts
@@ -46,7 +46,7 @@ export function setUpModule() {
newPage.content = tmp;
return newPage;
};
-
+
navHelper.navigate(pageFactory);
}
@@ -142,7 +142,7 @@ export function test_StackLayout_DesiredSize_Vertical() {
}, ASYNC);
TKUnit.assertEqual(rootLayout.getMeasuredWidth(), Math.max(btn1.getMeasuredWidth(), btn2.getMeasuredWidth()), "Layout getMeasuredWidth should be Max of children getMeasuredWidth");
- TKUnit.assertEqual(rootLayout.getMeasuredHeight(),(btn1.getMeasuredHeight() + btn2.getMeasuredHeight()), "Layout getMeasuredHeight should be Sum of children getMeasuredHeight");
+ TKUnit.assertEqual(rootLayout.getMeasuredHeight(), (btn1.getMeasuredHeight() + btn2.getMeasuredHeight()), "Layout getMeasuredHeight should be Sum of children getMeasuredHeight");
}
export function test_StackLayout_DesiredSize_Horizontal() {
@@ -155,7 +155,7 @@ export function test_StackLayout_DesiredSize_Horizontal() {
return btn2.arranged;
}, ASYNC);
- TKUnit.assertEqual(rootLayout.getMeasuredWidth(),(btn1.getMeasuredWidth() + btn2.getMeasuredWidth()), "Layout getMeasuredWidth should be Sum of children getMeasuredWidth");
+ TKUnit.assertEqual(rootLayout.getMeasuredWidth(), (btn1.getMeasuredWidth() + btn2.getMeasuredWidth()), "Layout getMeasuredWidth should be Sum of children getMeasuredWidth");
TKUnit.assertEqual(rootLayout.getMeasuredHeight(), Math.max(btn1.getMeasuredHeight(), btn2.getMeasuredHeight()), "Layout getMeasuredHeight should be Max of children getMeasuredHeight");
}
@@ -178,8 +178,8 @@ export function test_StackLayout_Padding_Vertical() {
helper.assertMeasure(btn1, 260, 50);
helper.assertMeasure(btn1, 260, 50);
- helper.assertLayout(btn1, 10, 20, 260, 50, "btn1");
- helper.assertLayout(btn2, 10, 70, 260, 50, "btn2");
+ helper.assertLayout(btn1, 10, 20, 260, 50, "btn1");
+ helper.assertLayout(btn2, 10, 70, 260, 50, "btn2");
}
export function test_StackLayout_Padding_Horizontal() {
@@ -213,6 +213,16 @@ export function test_codesnippets() {
var stackLayout = new layout.StackLayout();
// ```
+ // ### Declaring a StackLayout.
+ //```XML
+ //
+ //
+ //
+ //
+ //
+ //```
+ //
+
// ### Add child view to layout
// ``` JavaScript
var btn = new button.Button();
diff --git a/apps/tests/layouts/wrap-layout-tests.ts b/apps/tests/layouts/wrap-layout-tests.ts
index 35878f3c1..8fa0077ff 100644
--- a/apps/tests/layouts/wrap-layout-tests.ts
+++ b/apps/tests/layouts/wrap-layout-tests.ts
@@ -26,6 +26,19 @@ var _createWrapLayoutFunc = function (childCount: number, childWidth?: number, c
// ```
//
+ // ### Declaring a WrapLayout.
+ //```XML
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //```
+ //
+
wrapLayout.width = 200;
wrapLayout.height = 200;