diff --git a/apps/tests/layouts/absolute-layout-tests.ts b/apps/tests/layouts/absolute-layout-tests.ts index 8fe0ca5f5..df28a37a2 100644 --- a/apps/tests/layouts/absolute-layout-tests.ts +++ b/apps/tests/layouts/absolute-layout-tests.ts @@ -5,23 +5,9 @@ import colorModule = require("color"); import layoutHelper = require("./layout-helper"); import commonTests = require("./common-layout-tests"); -// -// # AbsoluteLayout -// Using a AbsoluteLayout requires the AbsoluteLayout module. -// ``` JavaScript +// >> absolute-layout-require import absoluteLayoutModule = require("ui/layouts/absolute-layout"); -// ``` -// - -// ### Declaring a AbsoluteLayout. -//``` XML -// -// -// -// -//``` -//  +// << absolute-layout-require export class AbsoluteLayoutTest extends testModule.UITest { @@ -31,9 +17,7 @@ export class AbsoluteLayoutTest extends testModule.UITest - // ## Creating and populating a AbsoluteLayout with children - // ``` JavaScript + // >> absolute-layout-populating var absoluteLayout = new absoluteLayoutModule.AbsoluteLayout(); absoluteLayout.width = 230; absoluteLayout.height = 230; @@ -48,8 +32,7 @@ export class AbsoluteLayoutTest extends testModule.UITest + // << absolute-layout-populating } public testAll() { diff --git a/apps/tests/layouts/absolute-layout.md b/apps/tests/layouts/absolute-layout.md new file mode 100644 index 000000000..ca920e27e --- /dev/null +++ b/apps/tests/layouts/absolute-layout.md @@ -0,0 +1,19 @@ +--- +nav-title: "absolute-layout How-To" +title: "How-To" +description: "Examples for using absolute-layout" +--- +# AbsoluteLayout +Using a AbsoluteLayout requires the AbsoluteLayout module. + + +``` XML + + + + +``` + +## Creating and populating a AbsoluteLayout with children + diff --git a/apps/tests/layouts/dock-layout-tests.ts b/apps/tests/layouts/dock-layout-tests.ts index d21bc963c..06c440475 100644 --- a/apps/tests/layouts/dock-layout-tests.ts +++ b/apps/tests/layouts/dock-layout-tests.ts @@ -6,32 +6,13 @@ import testModule = require("../ui-test"); import layoutHelper = require("./layout-helper"); import commonTests = require("./common-layout-tests"); -// -// # DockLayout -// Using a DockLayout requires the DockLayout module. -// ``` JavaScript +// >> import dockModule = require("ui/layouts/dock-layout"); -// ``` +// << -// ### Declaring a DockLayout. -//``` XML -// -// -//