From 54c65e94d7ed58e45eaf46f110384b268cb3ac41 Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Thu, 28 Apr 2016 17:35:06 +0300 Subject: [PATCH 01/16] Split layout-base to iOS and Android files clipToBounds for a single view can't be implemented in Android in a straightforward manner Resolves #1829 --- CrossPlatformModules.csproj | 16 +++++-- tsconfig.json | 4 +- .../{layout-base.ts => layout-base-common.ts} | 43 ++++++++----------- ui/layouts/layout-base.android.ts | 16 +++++++ ui/layouts/layout-base.ios.ts | 9 ++++ 5 files changed, 58 insertions(+), 30 deletions(-) rename ui/layouts/{layout-base.ts => layout-base-common.ts} (86%) create mode 100644 ui/layouts/layout-base.android.ts create mode 100644 ui/layouts/layout-base.ios.ts diff --git a/CrossPlatformModules.csproj b/CrossPlatformModules.csproj index 43e89fcf4..9dfa73372 100644 --- a/CrossPlatformModules.csproj +++ b/CrossPlatformModules.csproj @@ -829,10 +829,16 @@ layout.d.ts - + + + layout-base.d.ts + + + layout-base.d.ts + + layout-base.d.ts - stack-layout.d.ts @@ -1343,7 +1349,9 @@ PreserveNewest - + + Designer + Designer @@ -2222,7 +2230,7 @@ False - + \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 833f410d8..4836e0e8e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -583,7 +583,9 @@ "ui/layouts/grid-layout/grid-layout.d.ts", "ui/layouts/grid-layout/grid-layout.ios.ts", "ui/layouts/layout-base.d.ts", - "ui/layouts/layout-base.ts", + "ui/layouts/layout-base-common.ts", + "ui/layouts/layout-base.android.ts", + "ui/layouts/layout-base.ios.ts", "ui/layouts/layout.android.ts", "ui/layouts/layout.d.ts", "ui/layouts/layout.ios.ts", diff --git a/ui/layouts/layout-base.ts b/ui/layouts/layout-base-common.ts similarity index 86% rename from ui/layouts/layout-base.ts rename to ui/layouts/layout-base-common.ts index ca2159dee..346831691 100644 --- a/ui/layouts/layout-base.ts +++ b/ui/layouts/layout-base-common.ts @@ -2,16 +2,26 @@ import types = require("utils/types"); import view = require("ui/core/view"); import dependencyObservable = require("ui/core/dependency-observable"); -import proxy = require("ui/core/proxy"); import utils = require("utils/utils"); import style = require("ui/styling/style"); -import * as platformModule from "platform"; -var platform: typeof platformModule; +import {PropertyChangeData, Property } from "ui/core/dependency-observable"; +import {PropertyMetadata } from "ui/core/proxy"; + +var clipToBoundsProperty = new Property( + "clipToBounds", + "LayoutBase", + new PropertyMetadata(true, dependencyObservable.PropertyMetadataSettings.None)); + +function onClipToBoundsPropertyChanged(data: PropertyChangeData) { + var layout = data.object; + layout._onClipToBoundsChanged(data.oldValue, data.newValue); +} + +(clipToBoundsProperty.metadata).onSetNativeValue = onClipToBoundsPropertyChanged; export class LayoutBase extends view.CustomLayoutView implements definition.LayoutBase, view.AddChildFromBuilder { - public static clipToBoundsProperty = new dependencyObservable.Property("clipToBounds", "LayoutBase", - new proxy.PropertyMetadata(true, dependencyObservable.PropertyMetadataSettings.None, LayoutBase.onClipToBoundsPropertyChanged, null, LayoutBase.onClipToBoundsPropertyChanged)); + public static clipToBoundsProperty = clipToBoundsProperty; private _subViews: Array = new Array(); @@ -120,21 +130,8 @@ export class LayoutBase extends view.CustomLayoutView implements definition.Layo this._setValue(LayoutBase.clipToBoundsProperty, value); } - protected onClipToBoundsChanged(oldValue: boolean, newValue: boolean) { - if (!this._nativeView) { - return; - } - - if (!platform) { - platform = require("platform"); - } - - if (platform.device.os === platform.platformNames.ios) { - this._nativeView.clipsToBounds = newValue; - } - else if (platform.device.os === platform.platformNames.android) { - this._nativeView.setClipChildren(newValue); - } + public _onClipToBoundsChanged(oldValue: boolean, newValue: boolean) { + // } public _childIndexToNativeChildIndex(index?: number): number { @@ -182,11 +179,6 @@ export class LayoutBase extends view.CustomLayoutView implements definition.Layo } - private static onClipToBoundsPropertyChanged(data: dependencyObservable.PropertyChangeData): void { - var layout = data.object; - layout.onClipToBoundsChanged(data.oldValue, data.newValue); - } - protected static adjustChildrenLayoutParams(layoutBase: LayoutBase, widthMeasureSpec: number, heightMeasureSpec: number): void { let availableWidth = utils.layout.getMeasureSpecSize(widthMeasureSpec); let widthSpec = utils.layout.getMeasureSpecMode(widthMeasureSpec); @@ -255,3 +247,4 @@ export class LayoutBase extends view.CustomLayoutView implements definition.Layo } } } + diff --git a/ui/layouts/layout-base.android.ts b/ui/layouts/layout-base.android.ts new file mode 100644 index 000000000..a24b9206a --- /dev/null +++ b/ui/layouts/layout-base.android.ts @@ -0,0 +1,16 @@ +import common = require("./layout-base-common"); + +export class LayoutBase extends common.LayoutBase { + public _onClipToBoundsChanged(oldValue: boolean, newValue: boolean) { + // We can't implement this without calling setClipChildren(false) on every ancestor up in the visual tree, + // which will kill performance. It will also lead to unwanted side effects such as other totally unrelated + // views being affected by setting the parents' setClipChildren to false. + // The problem in Android is that a ViewGroup either clips ALL of its children or it does not. Unlike iOS, the clipping + // cannot be controlled on a per view basis. So clipToBounds=false will have to be somehow achieved with stacking different + // views on top of one another in an AbsoluteLayout or GridLayout. There is always a workaround when playing with layouts. + // + // The following article explains this in detail: + // http://stackoverflow.com/questions/25044085/when-drawing-outside-the-view-clip-bounds-with-android-how-do-i-prevent-underli + console.warn(`clipToBounds with value false is not supported on Android. You can use this.android.getParent().setClipChildren(false) as an alternative`); + } +} \ No newline at end of file diff --git a/ui/layouts/layout-base.ios.ts b/ui/layouts/layout-base.ios.ts new file mode 100644 index 000000000..b253e7e02 --- /dev/null +++ b/ui/layouts/layout-base.ios.ts @@ -0,0 +1,9 @@ +import common = require("./layout-base-common"); + +export class LayoutBase extends common.LayoutBase { + public _onClipToBoundsChanged(oldValue: boolean, newValue: boolean) { + if (this._nativeView) { + this._nativeView.clipsToBounds = newValue; + } + } +} \ No newline at end of file From 3e489db2c95c99933d8b9bd8aed59cf0f669fefc Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Mon, 2 May 2016 10:10:51 +0300 Subject: [PATCH 02/16] Improve the readability of the docs navbar --- apps/tests/application-settings.md | 2 +- apps/tests/application.md | 2 +- apps/tests/camera.md | 2 +- apps/tests/color.md | 2 +- apps/tests/connectivity.md | 4 ++-- apps/tests/console.md | 2 +- apps/tests/fetch.md | 2 +- apps/tests/file-system.md | 2 +- apps/tests/fps-meter.md | 2 +- apps/tests/frame.md | 2 +- apps/tests/gestures.md | 2 +- apps/tests/http.md | 2 +- apps/tests/image-source.md | 2 +- apps/tests/layouts/absolute-layout.md | 2 +- apps/tests/layouts/dock-layout.md | 2 +- apps/tests/layouts/grid-layout.md | 2 +- apps/tests/layouts/stack-layout.md | 2 +- apps/tests/layouts/wrap-layout.md | 2 +- apps/tests/location.md | 2 +- apps/tests/observable-array.md | 2 +- apps/tests/observable.md | 2 +- apps/tests/platform.md | 2 +- apps/tests/text/formatted-string.md | 2 +- apps/tests/timer.md | 2 +- apps/tests/trace.md | 2 +- apps/tests/ui/action-bar/action-bar.md | 2 +- apps/tests/ui/activity-indicator/activity-indicator.md | 2 +- apps/tests/ui/animation/animation.md | 2 +- apps/tests/ui/border/border.md | 2 +- apps/tests/ui/button/button.md | 2 +- apps/tests/ui/date-picker/date-picker.md | 2 +- apps/tests/ui/dialogs/dialog.md | 2 +- apps/tests/ui/html-view/htm-view.md | 2 +- apps/tests/ui/image-cache/image-cache.md | 2 +- apps/tests/ui/image/image.md | 2 +- apps/tests/ui/label/label.md | 2 +- apps/tests/ui/list-picker/list-picker.md | 2 +- apps/tests/ui/list-view/list-view.md | 2 +- apps/tests/ui/page/page.md | 2 +- apps/tests/ui/placeholder/placeholder.md | 2 +- apps/tests/ui/progress/progress.md | 2 +- apps/tests/ui/repeater/repeater.md | 2 +- apps/tests/ui/scroll-view/scroll-view.md | 2 +- apps/tests/ui/search-bar/search-bar.md | 2 +- apps/tests/ui/segmented-bar/segmented-bar.md | 2 +- apps/tests/ui/slider/slider.md | 2 +- apps/tests/ui/style/style.md | 2 +- apps/tests/ui/switch/switch.md | 2 +- apps/tests/ui/tab-view/tab-view.md | 2 +- apps/tests/ui/text-field/text-field.md | 2 +- apps/tests/ui/text-view/text-view.md | 2 +- apps/tests/ui/time-picker/time-picker.md | 2 +- apps/tests/ui/web-view/web-view.md | 4 ++-- apps/tests/virtual-array.md | 2 +- apps/tests/xml-parser-tests/xml-parser.md | 2 +- 55 files changed, 57 insertions(+), 57 deletions(-) diff --git a/apps/tests/application-settings.md b/apps/tests/application-settings.md index 49d263280..1913c62c4 100644 --- a/apps/tests/application-settings.md +++ b/apps/tests/application-settings.md @@ -1,6 +1,6 @@ --- nav-title: "application-settings How-To" -title: "How-To" +title: "ApplicationSettings" description: "Examples for using application-settings" --- # Application Settings diff --git a/apps/tests/application.md b/apps/tests/application.md index 3e72a181b..58cfa33f0 100644 --- a/apps/tests/application.md +++ b/apps/tests/application.md @@ -1,6 +1,6 @@ --- nav-title: "application How-To" -title: "How-To" +title: "Application" description: "Examples for using application" --- # Application diff --git a/apps/tests/camera.md b/apps/tests/camera.md index ea4a3199d..30b4df24a 100644 --- a/apps/tests/camera.md +++ b/apps/tests/camera.md @@ -1,6 +1,6 @@ --- nav-title: "camera How-To" -title: "How-To" +title: "Camera" description: "Examples for using camera" --- # Camera module diff --git a/apps/tests/color.md b/apps/tests/color.md index e863bcc00..68464e28b 100644 --- a/apps/tests/color.md +++ b/apps/tests/color.md @@ -1,6 +1,6 @@ --- nav-title: "color How-To" -title: "How-To" +title: "Color" description: "Examples for using color" --- # Color diff --git a/apps/tests/connectivity.md b/apps/tests/connectivity.md index e40458337..3b8e13850 100644 --- a/apps/tests/connectivity.md +++ b/apps/tests/connectivity.md @@ -1,6 +1,6 @@ --- nav-title: "connectivity How-To" -title: "How-To" +title: "Connectivity" description: "Examples for using connectivity" --- # Connectivity @@ -11,4 +11,4 @@ Obtaining connectivity information requires the "connectivity" module. ### Monitoring connection type. - \ No newline at end of file + diff --git a/apps/tests/console.md b/apps/tests/console.md index 47071cdd9..1a745bfcd 100644 --- a/apps/tests/console.md +++ b/apps/tests/console.md @@ -1,6 +1,6 @@ --- nav-title: "console How-To" -title: "How-To" +title: "Console" description: "Examples for using console" --- # Console diff --git a/apps/tests/fetch.md b/apps/tests/fetch.md index 096699419..6019a0991 100644 --- a/apps/tests/fetch.md +++ b/apps/tests/fetch.md @@ -1,6 +1,6 @@ --- nav-title: "fetch How-To" -title: "How-To" +title: "Fetch" description: "Examples for using fetch" --- ### Get Response from URL diff --git a/apps/tests/file-system.md b/apps/tests/file-system.md index 3dd04b30b..86f159ceb 100644 --- a/apps/tests/file-system.md +++ b/apps/tests/file-system.md @@ -1,6 +1,6 @@ --- nav-title: "file-system How-To" -title: "How-To" +title: "FileSystem" description: "Examples for using file-system" --- # File System diff --git a/apps/tests/fps-meter.md b/apps/tests/fps-meter.md index 34d15a86f..dfd5ce533 100644 --- a/apps/tests/fps-meter.md +++ b/apps/tests/fps-meter.md @@ -1,6 +1,6 @@ --- nav-title: "fps-meter How-To" -title: "How-To" +title: "FpsMeter" description: "Examples for using fps-meter" --- # Frames-per-second meter diff --git a/apps/tests/frame.md b/apps/tests/frame.md index fdd3008bd..a0c269b26 100644 --- a/apps/tests/frame.md +++ b/apps/tests/frame.md @@ -1,6 +1,6 @@ --- nav-title: "frame How-To" -title: "How-To" +title: "Frame" description: "Examples for using frame" --- # Frame diff --git a/apps/tests/gestures.md b/apps/tests/gestures.md index 205604b38..4c3e3fb76 100644 --- a/apps/tests/gestures.md +++ b/apps/tests/gestures.md @@ -1,6 +1,6 @@ --- nav-title: "gestures How-To" -title: "How-To" +title: "Gestures" description: "Examples for using gestures" --- # Gestures diff --git a/apps/tests/http.md b/apps/tests/http.md index 126037867..843953ca0 100644 --- a/apps/tests/http.md +++ b/apps/tests/http.md @@ -1,6 +1,6 @@ --- nav-title: "http How-To" -title: "How-To" +title: "Http" description: "Examples for using http" --- # Http module diff --git a/apps/tests/image-source.md b/apps/tests/image-source.md index 198a9a0f9..d1d3561ae 100644 --- a/apps/tests/image-source.md +++ b/apps/tests/image-source.md @@ -1,6 +1,6 @@ --- nav-title: "image-source How-To" -title: "How-To" +title: "ImageSource" description: "Examples for using image-source" --- # Image source diff --git a/apps/tests/layouts/absolute-layout.md b/apps/tests/layouts/absolute-layout.md index ca920e27e..c6dc0ecca 100644 --- a/apps/tests/layouts/absolute-layout.md +++ b/apps/tests/layouts/absolute-layout.md @@ -1,6 +1,6 @@ --- nav-title: "absolute-layout How-To" -title: "How-To" +title: "AbsoluteLayout" description: "Examples for using absolute-layout" --- # AbsoluteLayout diff --git a/apps/tests/layouts/dock-layout.md b/apps/tests/layouts/dock-layout.md index ac332b1a0..40971ad81 100644 --- a/apps/tests/layouts/dock-layout.md +++ b/apps/tests/layouts/dock-layout.md @@ -1,7 +1,7 @@ --- nav-title: "dock-layout How-To" -title: "How-To" +title: "DockLayout" description: "Examples for using dock-layout" --- # DockLayout diff --git a/apps/tests/layouts/grid-layout.md b/apps/tests/layouts/grid-layout.md index 84cf24f0e..bb29b7e28 100644 --- a/apps/tests/layouts/grid-layout.md +++ b/apps/tests/layouts/grid-layout.md @@ -1,6 +1,6 @@ --- nav-title: "grid-layout How-To" -title: "How-To" +title: "GridLayout" description: "Examples for using grid-layout" --- ## GridLayout sample diff --git a/apps/tests/layouts/stack-layout.md b/apps/tests/layouts/stack-layout.md index d0750a5e1..b2a8332ec 100644 --- a/apps/tests/layouts/stack-layout.md +++ b/apps/tests/layouts/stack-layout.md @@ -1,6 +1,6 @@ --- nav-title: "stack-layout How-To" -title: "How-To" +title: "StackLayout" description: "Examples for using stack-layout" --- ### import StackLayout and Button classes diff --git a/apps/tests/layouts/wrap-layout.md b/apps/tests/layouts/wrap-layout.md index e08668be9..fd2c5ce06 100644 --- a/apps/tests/layouts/wrap-layout.md +++ b/apps/tests/layouts/wrap-layout.md @@ -1,6 +1,6 @@ --- nav-title: "WrapLayout How-To" -title: "How-To" +title: "WrapLayout" description: "Examples for using WrapLayout" --- # WrapLayout diff --git a/apps/tests/location.md b/apps/tests/location.md index db66c21d9..2203ef3f7 100644 --- a/apps/tests/location.md +++ b/apps/tests/location.md @@ -1,6 +1,6 @@ --- nav-title: "location How-To" -title: "How-To" +title: "Location" description: "Examples for using location" --- # Location diff --git a/apps/tests/observable-array.md b/apps/tests/observable-array.md index 0d4554450..9086ea151 100644 --- a/apps/tests/observable-array.md +++ b/apps/tests/observable-array.md @@ -1,6 +1,6 @@ --- nav-title: "observable-array How-To" -title: "How-To" +title: "ObservableArray" description: "Examples for using observable-array" --- # Observable Array module diff --git a/apps/tests/observable.md b/apps/tests/observable.md index 262ded4f9..1abd65062 100644 --- a/apps/tests/observable.md +++ b/apps/tests/observable.md @@ -1,6 +1,6 @@ --- nav-title: "data/observable How-To" -title: "How-To" +title: "Observable" description: "Examples for using data/observable" --- # Observable diff --git a/apps/tests/platform.md b/apps/tests/platform.md index d64cd1aec..b1be887d6 100644 --- a/apps/tests/platform.md +++ b/apps/tests/platform.md @@ -1,6 +1,6 @@ --- nav-title: "platform How-To" -title: "How-To" +title: "Platform" description: "Examples for using platform" --- # Platform diff --git a/apps/tests/text/formatted-string.md b/apps/tests/text/formatted-string.md index bcb51f15a..50a682b39 100644 --- a/apps/tests/text/formatted-string.md +++ b/apps/tests/text/formatted-string.md @@ -1,6 +1,6 @@ --- nav-title: "Formatted String How-To" -title: "How-To" +title: "FormattedString" description: "Examples for using Formatted String" --- # Formatted String diff --git a/apps/tests/timer.md b/apps/tests/timer.md index 1b474e178..b673c1f99 100644 --- a/apps/tests/timer.md +++ b/apps/tests/timer.md @@ -1,6 +1,6 @@ --- nav-title: "timer How-To" -title: "How-To" +title: "Timer" description: "Examples for using timer" --- # Timer module diff --git a/apps/tests/trace.md b/apps/tests/trace.md index 62554639c..2e81dde7a 100644 --- a/apps/tests/trace.md +++ b/apps/tests/trace.md @@ -1,6 +1,6 @@ --- nav-title: "trace How-To" -title: "How-To" +title: "Trace" description: "Examples for using trace" --- # Trace diff --git a/apps/tests/ui/action-bar/action-bar.md b/apps/tests/ui/action-bar/action-bar.md index c2e8c1e3a..1ae7dba3a 100644 --- a/apps/tests/ui/action-bar/action-bar.md +++ b/apps/tests/ui/action-bar/action-bar.md @@ -1,6 +1,6 @@ --- nav-title: "ActionBar How-To" -title: "How-To" +title: "ActionBar" description: "Examples for using ActionBar" --- # ActionBar diff --git a/apps/tests/ui/activity-indicator/activity-indicator.md b/apps/tests/ui/activity-indicator/activity-indicator.md index 80ee31207..f0b0a55c0 100644 --- a/apps/tests/ui/activity-indicator/activity-indicator.md +++ b/apps/tests/ui/activity-indicator/activity-indicator.md @@ -1,6 +1,6 @@ --- nav-title: "activity-indicator How-To" -title: "How-To" +title: "ActivityIndicator" description: "Examples for using activity-indicator" --- # ActivityIndicator diff --git a/apps/tests/ui/animation/animation.md b/apps/tests/ui/animation/animation.md index 78d666998..b1554d636 100644 --- a/apps/tests/ui/animation/animation.md +++ b/apps/tests/ui/animation/animation.md @@ -1,6 +1,6 @@ --- nav-title: "animation How-To" -title: "How-To" +title: "Animation" description: "Examples for using animation" --- # Animation diff --git a/apps/tests/ui/border/border.md b/apps/tests/ui/border/border.md index f507ba630..8001db92c 100644 --- a/apps/tests/ui/border/border.md +++ b/apps/tests/ui/border/border.md @@ -1,6 +1,6 @@ --- nav-title: "Border How-To" -title: "How-To" +title: "Border" description: "Examples for using Border" --- # Border diff --git a/apps/tests/ui/button/button.md b/apps/tests/ui/button/button.md index 76f5381ea..c181956a4 100644 --- a/apps/tests/ui/button/button.md +++ b/apps/tests/ui/button/button.md @@ -1,6 +1,6 @@ --- nav-title: "button How-To" -title: "How-To" +title: "Button" description: "Examples for using button" --- # Button diff --git a/apps/tests/ui/date-picker/date-picker.md b/apps/tests/ui/date-picker/date-picker.md index 4e12c68c9..50315b7c2 100644 --- a/apps/tests/ui/date-picker/date-picker.md +++ b/apps/tests/ui/date-picker/date-picker.md @@ -1,6 +1,6 @@ --- nav-title: "DatePicker How-To" -title: "How-To" +title: "DatePicker" description: "Examples for using DatePicker" --- # DatePicker diff --git a/apps/tests/ui/dialogs/dialog.md b/apps/tests/ui/dialogs/dialog.md index 2644f3233..90a347c10 100644 --- a/apps/tests/ui/dialogs/dialog.md +++ b/apps/tests/ui/dialogs/dialog.md @@ -1,6 +1,6 @@ --- nav-title: "dialogs How-To" -title: "How-To" +title: "Dialogs" description: "Examples for using dialogs" --- # Dialogs diff --git a/apps/tests/ui/html-view/htm-view.md b/apps/tests/ui/html-view/htm-view.md index 937a7b177..b3d91c801 100644 --- a/apps/tests/ui/html-view/htm-view.md +++ b/apps/tests/ui/html-view/htm-view.md @@ -1,6 +1,6 @@ --- nav-title: "HtmlView How-To" -title: "How-To" +title: "HtmlView" description: "Examples for using HtmlView" --- # HtmlView diff --git a/apps/tests/ui/image-cache/image-cache.md b/apps/tests/ui/image-cache/image-cache.md index fc8d99f10..6e0160756 100644 --- a/apps/tests/ui/image-cache/image-cache.md +++ b/apps/tests/ui/image-cache/image-cache.md @@ -1,6 +1,6 @@ --- nav-title: "image-cache How-To" -title: "How-To" +title: "Image" description: "Examples for using image-cache" --- # ImageCache diff --git a/apps/tests/ui/image/image.md b/apps/tests/ui/image/image.md index 86d26500b..cadbf3bb7 100644 --- a/apps/tests/ui/image/image.md +++ b/apps/tests/ui/image/image.md @@ -1,6 +1,6 @@ --- nav-title: "Image How-To" -title: "How-To" +title: "Image" description: "Examples for using Image" --- # Image diff --git a/apps/tests/ui/label/label.md b/apps/tests/ui/label/label.md index a4f53b73a..731ad68e4 100644 --- a/apps/tests/ui/label/label.md +++ b/apps/tests/ui/label/label.md @@ -1,6 +1,6 @@ --- nav-title: "Label How-To" -title: "How-To" +title: "Label" description: "Examples for using Label" --- # Label diff --git a/apps/tests/ui/list-picker/list-picker.md b/apps/tests/ui/list-picker/list-picker.md index 92a4ee1ad..96209b4cd 100644 --- a/apps/tests/ui/list-picker/list-picker.md +++ b/apps/tests/ui/list-picker/list-picker.md @@ -1,6 +1,6 @@ --- nav-title: "ListPicker How-To" -title: "How-To" +title: "ListPicker" description: "Examples for using ListPicker" --- # ListPicker diff --git a/apps/tests/ui/list-view/list-view.md b/apps/tests/ui/list-view/list-view.md index 7cd7f1fea..1991f6307 100644 --- a/apps/tests/ui/list-view/list-view.md +++ b/apps/tests/ui/list-view/list-view.md @@ -1,6 +1,6 @@ --- nav-title: "list-view How-To" -title: "How-To" +title: "ListView" description: "Examples for using list-view" --- # ListView diff --git a/apps/tests/ui/page/page.md b/apps/tests/ui/page/page.md index f64449557..304b17f36 100644 --- a/apps/tests/ui/page/page.md +++ b/apps/tests/ui/page/page.md @@ -1,6 +1,6 @@ --- nav-title: "Page How-To" -title: "How-To" +title: "Page" description: "Examples for using Page" --- # Page diff --git a/apps/tests/ui/placeholder/placeholder.md b/apps/tests/ui/placeholder/placeholder.md index 6f678a624..cdea039a0 100644 --- a/apps/tests/ui/placeholder/placeholder.md +++ b/apps/tests/ui/placeholder/placeholder.md @@ -1,6 +1,6 @@ --- nav-title: "placeholder How-To" -title: "How-To" +title: "Placeholder" description: "Examples for using placeholder" --- # Placeholder diff --git a/apps/tests/ui/progress/progress.md b/apps/tests/ui/progress/progress.md index 10cad91ba..8f5b5f900 100644 --- a/apps/tests/ui/progress/progress.md +++ b/apps/tests/ui/progress/progress.md @@ -1,6 +1,6 @@ --- nav-title: "progress How-To" -title: "How-To" +title: "Progress" description: "Examples for using progress" --- # Progress diff --git a/apps/tests/ui/repeater/repeater.md b/apps/tests/ui/repeater/repeater.md index b123dbf70..84ef32e98 100644 --- a/apps/tests/ui/repeater/repeater.md +++ b/apps/tests/ui/repeater/repeater.md @@ -1,6 +1,6 @@ --- nav-title: "repeater How-To" -title: "How-To" +title: "Repeater" description: "Examples for using repeater" --- # Repeater diff --git a/apps/tests/ui/scroll-view/scroll-view.md b/apps/tests/ui/scroll-view/scroll-view.md index cc7bbbd11..59e1f5c19 100644 --- a/apps/tests/ui/scroll-view/scroll-view.md +++ b/apps/tests/ui/scroll-view/scroll-view.md @@ -1,6 +1,6 @@ --- nav-title: "scroll-view How-To" -title: "How-To" +title: "ScrollView" description: "Examples for using scroll-view" --- # ScrollView diff --git a/apps/tests/ui/search-bar/search-bar.md b/apps/tests/ui/search-bar/search-bar.md index c8faf26de..83aaf316c 100644 --- a/apps/tests/ui/search-bar/search-bar.md +++ b/apps/tests/ui/search-bar/search-bar.md @@ -1,6 +1,6 @@ --- nav-title: "search-bar How-To" -title: "How-To" +title: "SearchBar" description: "Examples for using search-bar" --- # SearchBar diff --git a/apps/tests/ui/segmented-bar/segmented-bar.md b/apps/tests/ui/segmented-bar/segmented-bar.md index 7fad59685..2eea3b1dc 100644 --- a/apps/tests/ui/segmented-bar/segmented-bar.md +++ b/apps/tests/ui/segmented-bar/segmented-bar.md @@ -1,6 +1,6 @@ --- nav-title: "SegmentedBar How-To" -title: "How-To" +title: "SegmentedBar" description: "Examples for using SegmentedBar" --- # SegmentedBar diff --git a/apps/tests/ui/slider/slider.md b/apps/tests/ui/slider/slider.md index 1319b0a72..a9bf21bd1 100644 --- a/apps/tests/ui/slider/slider.md +++ b/apps/tests/ui/slider/slider.md @@ -1,6 +1,6 @@ --- nav-title: "slider How-To" -title: "How-To" +title: "Slider" description: "Examples for using slider" --- # Slider diff --git a/apps/tests/ui/style/style.md b/apps/tests/ui/style/style.md index 9ffa5aeb2..f5870b239 100644 --- a/apps/tests/ui/style/style.md +++ b/apps/tests/ui/style/style.md @@ -1,6 +1,6 @@ --- nav-title: "styling How-To" -title: "How-To" +title: "Styling" description: "Examples for using styling" --- # Styling diff --git a/apps/tests/ui/switch/switch.md b/apps/tests/ui/switch/switch.md index 4cb5fc845..e28bfc73a 100644 --- a/apps/tests/ui/switch/switch.md +++ b/apps/tests/ui/switch/switch.md @@ -1,6 +1,6 @@ --- nav-title: "switch How-To" -title: "How-To" +title: "Switch How-To" description: "Examples for using switch" --- # Switch diff --git a/apps/tests/ui/tab-view/tab-view.md b/apps/tests/ui/tab-view/tab-view.md index 5d068fbd5..9e6b440e9 100644 --- a/apps/tests/ui/tab-view/tab-view.md +++ b/apps/tests/ui/tab-view/tab-view.md @@ -1,6 +1,6 @@ --- nav-title: "TabView How-To" -title: "How-To" +title: "TabView" description: "Examples for using TabView" --- # TabView diff --git a/apps/tests/ui/text-field/text-field.md b/apps/tests/ui/text-field/text-field.md index eb253c34b..0bf6e43f0 100644 --- a/apps/tests/ui/text-field/text-field.md +++ b/apps/tests/ui/text-field/text-field.md @@ -1,6 +1,6 @@ --- nav-title: "TextField How-To" -title: "How-To" +title: "TextField" description: "Examples for using TextField" --- # TextField diff --git a/apps/tests/ui/text-view/text-view.md b/apps/tests/ui/text-view/text-view.md index 8565766ff..6c35c5841 100644 --- a/apps/tests/ui/text-view/text-view.md +++ b/apps/tests/ui/text-view/text-view.md @@ -1,6 +1,6 @@ --- nav-title: "TextView How-To" -title: "How-To" +title: "TextView" description: "Examples for using TextView" --- # TextView diff --git a/apps/tests/ui/time-picker/time-picker.md b/apps/tests/ui/time-picker/time-picker.md index 2e4060d58..8cd41038a 100644 --- a/apps/tests/ui/time-picker/time-picker.md +++ b/apps/tests/ui/time-picker/time-picker.md @@ -1,6 +1,6 @@ --- nav-title: "TimePicker How-To" -title: "How-To" +title: "TimePicker" description: "Examples for using TimePicker" --- # TimePicker diff --git a/apps/tests/ui/web-view/web-view.md b/apps/tests/ui/web-view/web-view.md index 3edc8e419..00879f61f 100644 --- a/apps/tests/ui/web-view/web-view.md +++ b/apps/tests/ui/web-view/web-view.md @@ -1,6 +1,6 @@ --- nav-title: "WebView How-To" -title: "How-To" +title: "WebView" description: "Examples for using WebView" --- # WebView @@ -15,4 +15,4 @@ Using a WebView requires the web-view module. ### Using WebView ### Using WebView - \ No newline at end of file + diff --git a/apps/tests/virtual-array.md b/apps/tests/virtual-array.md index 9b2436691..506f762ca 100644 --- a/apps/tests/virtual-array.md +++ b/apps/tests/virtual-array.md @@ -1,6 +1,6 @@ --- nav-title: "virtual-array How-To" -title: "How-To" +title: "VirtualArray" description: "Examples for using virtual-array" --- # Virtual Array module diff --git a/apps/tests/xml-parser-tests/xml-parser.md b/apps/tests/xml-parser-tests/xml-parser.md index fedbea2f5..0063c69fb 100644 --- a/apps/tests/xml-parser-tests/xml-parser.md +++ b/apps/tests/xml-parser-tests/xml-parser.md @@ -1,6 +1,6 @@ --- nav-title: "xml How-To" -title: "How-To" +title: "Xml" description: "Examples for using xml" --- # Xml module From bdbffb79bda5b6af083551ca97bf10ba173e1b17 Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Mon, 2 May 2016 10:45:50 +0300 Subject: [PATCH 03/16] Switch titles to lower-case --- apps/tests/application-settings.md | 2 +- apps/tests/application.md | 2 +- apps/tests/camera.md | 2 +- apps/tests/color.md | 2 +- apps/tests/connectivity.md | 2 +- apps/tests/console.md | 2 +- apps/tests/fetch.md | 2 +- apps/tests/file-system.md | 2 +- apps/tests/fps-meter.md | 2 +- apps/tests/frame.md | 2 +- apps/tests/gestures.md | 2 +- apps/tests/http.md | 2 +- apps/tests/image-source.md | 2 +- apps/tests/layouts/absolute-layout.md | 2 +- apps/tests/layouts/dock-layout.md | 5 ++--- apps/tests/layouts/grid-layout.md | 2 +- apps/tests/layouts/stack-layout.md | 2 +- apps/tests/layouts/wrap-layout.md | 2 +- apps/tests/location.md | 2 +- apps/tests/observable-array.md | 2 +- apps/tests/observable.md | 2 +- apps/tests/platform.md | 2 +- apps/tests/text/formatted-string.md | 2 +- apps/tests/timer.md | 2 +- apps/tests/trace.md | 2 +- apps/tests/ui/action-bar/action-bar.md | 2 +- apps/tests/ui/activity-indicator/activity-indicator.md | 2 +- apps/tests/ui/animation/animation.md | 2 +- apps/tests/ui/border/border.md | 2 +- apps/tests/ui/button/button.md | 2 +- apps/tests/ui/date-picker/date-picker.md | 2 +- apps/tests/ui/dialogs/dialog.md | 2 +- apps/tests/ui/html-view/htm-view.md | 2 +- apps/tests/ui/image-cache/image-cache.md | 2 +- apps/tests/ui/image/image.md | 2 +- apps/tests/ui/label/label.md | 2 +- apps/tests/ui/list-picker/list-picker.md | 2 +- apps/tests/ui/list-view/list-view.md | 2 +- apps/tests/ui/page/page.md | 2 +- apps/tests/ui/placeholder/placeholder.md | 2 +- apps/tests/ui/progress/progress.md | 2 +- apps/tests/ui/repeater/repeater.md | 2 +- apps/tests/ui/scroll-view/scroll-view.md | 2 +- apps/tests/ui/search-bar/search-bar.md | 2 +- apps/tests/ui/segmented-bar/segmented-bar.md | 2 +- apps/tests/ui/slider/slider.md | 2 +- apps/tests/ui/style/style.md | 2 +- apps/tests/ui/switch/switch.md | 2 +- apps/tests/ui/tab-view/tab-view.md | 2 +- apps/tests/ui/text-field/text-field.md | 2 +- apps/tests/ui/text-view/text-view.md | 2 +- apps/tests/ui/time-picker/time-picker.md | 2 +- apps/tests/ui/web-view/web-view.md | 2 +- apps/tests/virtual-array.md | 2 +- apps/tests/xml-parser-tests/xml-parser.md | 2 +- 55 files changed, 56 insertions(+), 57 deletions(-) diff --git a/apps/tests/application-settings.md b/apps/tests/application-settings.md index 1913c62c4..d83971a12 100644 --- a/apps/tests/application-settings.md +++ b/apps/tests/application-settings.md @@ -1,6 +1,6 @@ --- nav-title: "application-settings How-To" -title: "ApplicationSettings" +title: "application-settings" description: "Examples for using application-settings" --- # Application Settings diff --git a/apps/tests/application.md b/apps/tests/application.md index 58cfa33f0..062a0cf3e 100644 --- a/apps/tests/application.md +++ b/apps/tests/application.md @@ -1,6 +1,6 @@ --- nav-title: "application How-To" -title: "Application" +title: "application" description: "Examples for using application" --- # Application diff --git a/apps/tests/camera.md b/apps/tests/camera.md index 30b4df24a..def09ad59 100644 --- a/apps/tests/camera.md +++ b/apps/tests/camera.md @@ -1,6 +1,6 @@ --- nav-title: "camera How-To" -title: "Camera" +title: "camera" description: "Examples for using camera" --- # Camera module diff --git a/apps/tests/color.md b/apps/tests/color.md index 68464e28b..01693fcd5 100644 --- a/apps/tests/color.md +++ b/apps/tests/color.md @@ -1,6 +1,6 @@ --- nav-title: "color How-To" -title: "Color" +title: "color" description: "Examples for using color" --- # Color diff --git a/apps/tests/connectivity.md b/apps/tests/connectivity.md index 3b8e13850..98d5419cb 100644 --- a/apps/tests/connectivity.md +++ b/apps/tests/connectivity.md @@ -1,6 +1,6 @@ --- nav-title: "connectivity How-To" -title: "Connectivity" +title: "connectivity" description: "Examples for using connectivity" --- # Connectivity diff --git a/apps/tests/console.md b/apps/tests/console.md index 1a745bfcd..9ad641c65 100644 --- a/apps/tests/console.md +++ b/apps/tests/console.md @@ -1,6 +1,6 @@ --- nav-title: "console How-To" -title: "Console" +title: "console" description: "Examples for using console" --- # Console diff --git a/apps/tests/fetch.md b/apps/tests/fetch.md index 6019a0991..6ba31fc40 100644 --- a/apps/tests/fetch.md +++ b/apps/tests/fetch.md @@ -1,6 +1,6 @@ --- nav-title: "fetch How-To" -title: "Fetch" +title: "fetch" description: "Examples for using fetch" --- ### Get Response from URL diff --git a/apps/tests/file-system.md b/apps/tests/file-system.md index 86f159ceb..6abd30f9a 100644 --- a/apps/tests/file-system.md +++ b/apps/tests/file-system.md @@ -1,6 +1,6 @@ --- nav-title: "file-system How-To" -title: "FileSystem" +title: "file-system" description: "Examples for using file-system" --- # File System diff --git a/apps/tests/fps-meter.md b/apps/tests/fps-meter.md index dfd5ce533..9ea7115dd 100644 --- a/apps/tests/fps-meter.md +++ b/apps/tests/fps-meter.md @@ -1,6 +1,6 @@ --- nav-title: "fps-meter How-To" -title: "FpsMeter" +title: "fps-meter" description: "Examples for using fps-meter" --- # Frames-per-second meter diff --git a/apps/tests/frame.md b/apps/tests/frame.md index a0c269b26..1874e9eb3 100644 --- a/apps/tests/frame.md +++ b/apps/tests/frame.md @@ -1,6 +1,6 @@ --- nav-title: "frame How-To" -title: "Frame" +title: "frame" description: "Examples for using frame" --- # Frame diff --git a/apps/tests/gestures.md b/apps/tests/gestures.md index 4c3e3fb76..1a9296b40 100644 --- a/apps/tests/gestures.md +++ b/apps/tests/gestures.md @@ -1,6 +1,6 @@ --- nav-title: "gestures How-To" -title: "Gestures" +title: "gestures" description: "Examples for using gestures" --- # Gestures diff --git a/apps/tests/http.md b/apps/tests/http.md index 843953ca0..f4c30c12a 100644 --- a/apps/tests/http.md +++ b/apps/tests/http.md @@ -1,6 +1,6 @@ --- nav-title: "http How-To" -title: "Http" +title: "http" description: "Examples for using http" --- # Http module diff --git a/apps/tests/image-source.md b/apps/tests/image-source.md index d1d3561ae..109c6786c 100644 --- a/apps/tests/image-source.md +++ b/apps/tests/image-source.md @@ -1,6 +1,6 @@ --- nav-title: "image-source How-To" -title: "ImageSource" +title: "image-source" description: "Examples for using image-source" --- # Image source diff --git a/apps/tests/layouts/absolute-layout.md b/apps/tests/layouts/absolute-layout.md index c6dc0ecca..e78c557d7 100644 --- a/apps/tests/layouts/absolute-layout.md +++ b/apps/tests/layouts/absolute-layout.md @@ -1,6 +1,6 @@ --- nav-title: "absolute-layout How-To" -title: "AbsoluteLayout" +title: "absolute-layoyt" description: "Examples for using absolute-layout" --- # AbsoluteLayout diff --git a/apps/tests/layouts/dock-layout.md b/apps/tests/layouts/dock-layout.md index 40971ad81..95ceee8a1 100644 --- a/apps/tests/layouts/dock-layout.md +++ b/apps/tests/layouts/dock-layout.md @@ -1,7 +1,6 @@ - --- nav-title: "dock-layout How-To" -title: "DockLayout" +title: "dock-layout" description: "Examples for using dock-layout" --- # DockLayout @@ -33,5 +32,5 @@ Other frequently used modules when working with a DockLayout include: ## Remove child view from layout -## Setting the dock property +## Setting the dock roperty diff --git a/apps/tests/layouts/grid-layout.md b/apps/tests/layouts/grid-layout.md index bb29b7e28..90b55863a 100644 --- a/apps/tests/layouts/grid-layout.md +++ b/apps/tests/layouts/grid-layout.md @@ -1,6 +1,6 @@ --- nav-title: "grid-layout How-To" -title: "GridLayout" +title: "grid-layout" description: "Examples for using grid-layout" --- ## GridLayout sample diff --git a/apps/tests/layouts/stack-layout.md b/apps/tests/layouts/stack-layout.md index b2a8332ec..522ff65d9 100644 --- a/apps/tests/layouts/stack-layout.md +++ b/apps/tests/layouts/stack-layout.md @@ -1,6 +1,6 @@ --- nav-title: "stack-layout How-To" -title: "StackLayout" +title: "stack-layout" description: "Examples for using stack-layout" --- ### import StackLayout and Button classes diff --git a/apps/tests/layouts/wrap-layout.md b/apps/tests/layouts/wrap-layout.md index fd2c5ce06..c43fb2921 100644 --- a/apps/tests/layouts/wrap-layout.md +++ b/apps/tests/layouts/wrap-layout.md @@ -1,6 +1,6 @@ --- nav-title: "WrapLayout How-To" -title: "WrapLayout" +title: "wrap-layout" description: "Examples for using WrapLayout" --- # WrapLayout diff --git a/apps/tests/location.md b/apps/tests/location.md index 2203ef3f7..92f1a494a 100644 --- a/apps/tests/location.md +++ b/apps/tests/location.md @@ -1,6 +1,6 @@ --- nav-title: "location How-To" -title: "Location" +title: "location" description: "Examples for using location" --- # Location diff --git a/apps/tests/observable-array.md b/apps/tests/observable-array.md index 9086ea151..9743ac199 100644 --- a/apps/tests/observable-array.md +++ b/apps/tests/observable-array.md @@ -1,6 +1,6 @@ --- nav-title: "observable-array How-To" -title: "ObservableArray" +title: "observable-array" description: "Examples for using observable-array" --- # Observable Array module diff --git a/apps/tests/observable.md b/apps/tests/observable.md index 1abd65062..5f2175561 100644 --- a/apps/tests/observable.md +++ b/apps/tests/observable.md @@ -1,6 +1,6 @@ --- nav-title: "data/observable How-To" -title: "Observable" +title: "observable" description: "Examples for using data/observable" --- # Observable diff --git a/apps/tests/platform.md b/apps/tests/platform.md index b1be887d6..c41cee075 100644 --- a/apps/tests/platform.md +++ b/apps/tests/platform.md @@ -1,6 +1,6 @@ --- nav-title: "platform How-To" -title: "Platform" +title: "platform" description: "Examples for using platform" --- # Platform diff --git a/apps/tests/text/formatted-string.md b/apps/tests/text/formatted-string.md index 50a682b39..0532cb798 100644 --- a/apps/tests/text/formatted-string.md +++ b/apps/tests/text/formatted-string.md @@ -1,6 +1,6 @@ --- nav-title: "Formatted String How-To" -title: "FormattedString" +title: "formatted-string" description: "Examples for using Formatted String" --- # Formatted String diff --git a/apps/tests/timer.md b/apps/tests/timer.md index b673c1f99..15e53a805 100644 --- a/apps/tests/timer.md +++ b/apps/tests/timer.md @@ -1,6 +1,6 @@ --- nav-title: "timer How-To" -title: "Timer" +title: "timer" description: "Examples for using timer" --- # Timer module diff --git a/apps/tests/trace.md b/apps/tests/trace.md index 2e81dde7a..076213d7f 100644 --- a/apps/tests/trace.md +++ b/apps/tests/trace.md @@ -1,6 +1,6 @@ --- nav-title: "trace How-To" -title: "Trace" +title: "trace" description: "Examples for using trace" --- # Trace diff --git a/apps/tests/ui/action-bar/action-bar.md b/apps/tests/ui/action-bar/action-bar.md index 1ae7dba3a..05f461acc 100644 --- a/apps/tests/ui/action-bar/action-bar.md +++ b/apps/tests/ui/action-bar/action-bar.md @@ -1,6 +1,6 @@ --- nav-title: "ActionBar How-To" -title: "ActionBar" +title: "actiob-bar" description: "Examples for using ActionBar" --- # ActionBar diff --git a/apps/tests/ui/activity-indicator/activity-indicator.md b/apps/tests/ui/activity-indicator/activity-indicator.md index f0b0a55c0..830d5aac3 100644 --- a/apps/tests/ui/activity-indicator/activity-indicator.md +++ b/apps/tests/ui/activity-indicator/activity-indicator.md @@ -1,6 +1,6 @@ --- nav-title: "activity-indicator How-To" -title: "ActivityIndicator" +title: "activity-indicator" description: "Examples for using activity-indicator" --- # ActivityIndicator diff --git a/apps/tests/ui/animation/animation.md b/apps/tests/ui/animation/animation.md index b1554d636..cfe479c96 100644 --- a/apps/tests/ui/animation/animation.md +++ b/apps/tests/ui/animation/animation.md @@ -1,6 +1,6 @@ --- nav-title: "animation How-To" -title: "Animation" +title: "animation" description: "Examples for using animation" --- # Animation diff --git a/apps/tests/ui/border/border.md b/apps/tests/ui/border/border.md index 8001db92c..1656a157e 100644 --- a/apps/tests/ui/border/border.md +++ b/apps/tests/ui/border/border.md @@ -1,6 +1,6 @@ --- nav-title: "Border How-To" -title: "Border" +title: "border" description: "Examples for using Border" --- # Border diff --git a/apps/tests/ui/button/button.md b/apps/tests/ui/button/button.md index c181956a4..b2c50cfa8 100644 --- a/apps/tests/ui/button/button.md +++ b/apps/tests/ui/button/button.md @@ -1,6 +1,6 @@ --- nav-title: "button How-To" -title: "Button" +title: "button" description: "Examples for using button" --- # Button diff --git a/apps/tests/ui/date-picker/date-picker.md b/apps/tests/ui/date-picker/date-picker.md index 50315b7c2..a031a0136 100644 --- a/apps/tests/ui/date-picker/date-picker.md +++ b/apps/tests/ui/date-picker/date-picker.md @@ -1,6 +1,6 @@ --- nav-title: "DatePicker How-To" -title: "DatePicker" +title: "date-picker" description: "Examples for using DatePicker" --- # DatePicker diff --git a/apps/tests/ui/dialogs/dialog.md b/apps/tests/ui/dialogs/dialog.md index 90a347c10..eb02f4636 100644 --- a/apps/tests/ui/dialogs/dialog.md +++ b/apps/tests/ui/dialogs/dialog.md @@ -1,6 +1,6 @@ --- nav-title: "dialogs How-To" -title: "Dialogs" +title: "dialogs" description: "Examples for using dialogs" --- # Dialogs diff --git a/apps/tests/ui/html-view/htm-view.md b/apps/tests/ui/html-view/htm-view.md index b3d91c801..5572a8c1f 100644 --- a/apps/tests/ui/html-view/htm-view.md +++ b/apps/tests/ui/html-view/htm-view.md @@ -1,6 +1,6 @@ --- nav-title: "HtmlView How-To" -title: "HtmlView" +title: "html-view" description: "Examples for using HtmlView" --- # HtmlView diff --git a/apps/tests/ui/image-cache/image-cache.md b/apps/tests/ui/image-cache/image-cache.md index 6e0160756..11e634936 100644 --- a/apps/tests/ui/image-cache/image-cache.md +++ b/apps/tests/ui/image-cache/image-cache.md @@ -1,6 +1,6 @@ --- nav-title: "image-cache How-To" -title: "Image" +title: "image-cache" description: "Examples for using image-cache" --- # ImageCache diff --git a/apps/tests/ui/image/image.md b/apps/tests/ui/image/image.md index cadbf3bb7..cd004bc9a 100644 --- a/apps/tests/ui/image/image.md +++ b/apps/tests/ui/image/image.md @@ -1,6 +1,6 @@ --- nav-title: "Image How-To" -title: "Image" +title: "image" description: "Examples for using Image" --- # Image diff --git a/apps/tests/ui/label/label.md b/apps/tests/ui/label/label.md index 731ad68e4..d37bc8f99 100644 --- a/apps/tests/ui/label/label.md +++ b/apps/tests/ui/label/label.md @@ -1,6 +1,6 @@ --- nav-title: "Label How-To" -title: "Label" +title: "label" description: "Examples for using Label" --- # Label diff --git a/apps/tests/ui/list-picker/list-picker.md b/apps/tests/ui/list-picker/list-picker.md index 96209b4cd..f44bde393 100644 --- a/apps/tests/ui/list-picker/list-picker.md +++ b/apps/tests/ui/list-picker/list-picker.md @@ -1,6 +1,6 @@ --- nav-title: "ListPicker How-To" -title: "ListPicker" +title: "list-picker" description: "Examples for using ListPicker" --- # ListPicker diff --git a/apps/tests/ui/list-view/list-view.md b/apps/tests/ui/list-view/list-view.md index 1991f6307..4a775c21a 100644 --- a/apps/tests/ui/list-view/list-view.md +++ b/apps/tests/ui/list-view/list-view.md @@ -1,6 +1,6 @@ --- nav-title: "list-view How-To" -title: "ListView" +title: "list-view" description: "Examples for using list-view" --- # ListView diff --git a/apps/tests/ui/page/page.md b/apps/tests/ui/page/page.md index 304b17f36..85f9ec24e 100644 --- a/apps/tests/ui/page/page.md +++ b/apps/tests/ui/page/page.md @@ -1,6 +1,6 @@ --- nav-title: "Page How-To" -title: "Page" +title: "page" description: "Examples for using Page" --- # Page diff --git a/apps/tests/ui/placeholder/placeholder.md b/apps/tests/ui/placeholder/placeholder.md index cdea039a0..1759b7433 100644 --- a/apps/tests/ui/placeholder/placeholder.md +++ b/apps/tests/ui/placeholder/placeholder.md @@ -1,6 +1,6 @@ --- nav-title: "placeholder How-To" -title: "Placeholder" +title: "placeholder" description: "Examples for using placeholder" --- # Placeholder diff --git a/apps/tests/ui/progress/progress.md b/apps/tests/ui/progress/progress.md index 8f5b5f900..1bd09823a 100644 --- a/apps/tests/ui/progress/progress.md +++ b/apps/tests/ui/progress/progress.md @@ -1,6 +1,6 @@ --- nav-title: "progress How-To" -title: "Progress" +title: "progress" description: "Examples for using progress" --- # Progress diff --git a/apps/tests/ui/repeater/repeater.md b/apps/tests/ui/repeater/repeater.md index 84ef32e98..d2010c374 100644 --- a/apps/tests/ui/repeater/repeater.md +++ b/apps/tests/ui/repeater/repeater.md @@ -1,6 +1,6 @@ --- nav-title: "repeater How-To" -title: "Repeater" +title: "repeater" description: "Examples for using repeater" --- # Repeater diff --git a/apps/tests/ui/scroll-view/scroll-view.md b/apps/tests/ui/scroll-view/scroll-view.md index 59e1f5c19..586940315 100644 --- a/apps/tests/ui/scroll-view/scroll-view.md +++ b/apps/tests/ui/scroll-view/scroll-view.md @@ -1,6 +1,6 @@ --- nav-title: "scroll-view How-To" -title: "ScrollView" +title: "scroll-view" description: "Examples for using scroll-view" --- # ScrollView diff --git a/apps/tests/ui/search-bar/search-bar.md b/apps/tests/ui/search-bar/search-bar.md index 83aaf316c..a45dac0f7 100644 --- a/apps/tests/ui/search-bar/search-bar.md +++ b/apps/tests/ui/search-bar/search-bar.md @@ -1,6 +1,6 @@ --- nav-title: "search-bar How-To" -title: "SearchBar" +title: "search-bar" description: "Examples for using search-bar" --- # SearchBar diff --git a/apps/tests/ui/segmented-bar/segmented-bar.md b/apps/tests/ui/segmented-bar/segmented-bar.md index 2eea3b1dc..b98baf47c 100644 --- a/apps/tests/ui/segmented-bar/segmented-bar.md +++ b/apps/tests/ui/segmented-bar/segmented-bar.md @@ -1,6 +1,6 @@ --- nav-title: "SegmentedBar How-To" -title: "SegmentedBar" +title: "segmented-bar" description: "Examples for using SegmentedBar" --- # SegmentedBar diff --git a/apps/tests/ui/slider/slider.md b/apps/tests/ui/slider/slider.md index a9bf21bd1..dbfdeb71e 100644 --- a/apps/tests/ui/slider/slider.md +++ b/apps/tests/ui/slider/slider.md @@ -1,6 +1,6 @@ --- nav-title: "slider How-To" -title: "Slider" +title: "slider" description: "Examples for using slider" --- # Slider diff --git a/apps/tests/ui/style/style.md b/apps/tests/ui/style/style.md index f5870b239..75cf88292 100644 --- a/apps/tests/ui/style/style.md +++ b/apps/tests/ui/style/style.md @@ -1,6 +1,6 @@ --- nav-title: "styling How-To" -title: "Styling" +title: "styling" description: "Examples for using styling" --- # Styling diff --git a/apps/tests/ui/switch/switch.md b/apps/tests/ui/switch/switch.md index e28bfc73a..99ffb06ed 100644 --- a/apps/tests/ui/switch/switch.md +++ b/apps/tests/ui/switch/switch.md @@ -1,6 +1,6 @@ --- nav-title: "switch How-To" -title: "Switch How-To" +title: "switch" description: "Examples for using switch" --- # Switch diff --git a/apps/tests/ui/tab-view/tab-view.md b/apps/tests/ui/tab-view/tab-view.md index 9e6b440e9..76ea57a34 100644 --- a/apps/tests/ui/tab-view/tab-view.md +++ b/apps/tests/ui/tab-view/tab-view.md @@ -1,6 +1,6 @@ --- nav-title: "TabView How-To" -title: "TabView" +title: "tab-view" description: "Examples for using TabView" --- # TabView diff --git a/apps/tests/ui/text-field/text-field.md b/apps/tests/ui/text-field/text-field.md index 0bf6e43f0..8f72ea3dd 100644 --- a/apps/tests/ui/text-field/text-field.md +++ b/apps/tests/ui/text-field/text-field.md @@ -1,6 +1,6 @@ --- nav-title: "TextField How-To" -title: "TextField" +title: "text-field" description: "Examples for using TextField" --- # TextField diff --git a/apps/tests/ui/text-view/text-view.md b/apps/tests/ui/text-view/text-view.md index 6c35c5841..6186047ed 100644 --- a/apps/tests/ui/text-view/text-view.md +++ b/apps/tests/ui/text-view/text-view.md @@ -1,6 +1,6 @@ --- nav-title: "TextView How-To" -title: "TextView" +title: "text-view" description: "Examples for using TextView" --- # TextView diff --git a/apps/tests/ui/time-picker/time-picker.md b/apps/tests/ui/time-picker/time-picker.md index 8cd41038a..ed9470f22 100644 --- a/apps/tests/ui/time-picker/time-picker.md +++ b/apps/tests/ui/time-picker/time-picker.md @@ -1,6 +1,6 @@ --- nav-title: "TimePicker How-To" -title: "TimePicker" +title: "time-picker" description: "Examples for using TimePicker" --- # TimePicker diff --git a/apps/tests/ui/web-view/web-view.md b/apps/tests/ui/web-view/web-view.md index 00879f61f..13e4a3476 100644 --- a/apps/tests/ui/web-view/web-view.md +++ b/apps/tests/ui/web-view/web-view.md @@ -1,6 +1,6 @@ --- nav-title: "WebView How-To" -title: "WebView" +title: "webview" description: "Examples for using WebView" --- # WebView diff --git a/apps/tests/virtual-array.md b/apps/tests/virtual-array.md index 506f762ca..521e263c4 100644 --- a/apps/tests/virtual-array.md +++ b/apps/tests/virtual-array.md @@ -1,6 +1,6 @@ --- nav-title: "virtual-array How-To" -title: "VirtualArray" +title: "virtual-array" description: "Examples for using virtual-array" --- # Virtual Array module diff --git a/apps/tests/xml-parser-tests/xml-parser.md b/apps/tests/xml-parser-tests/xml-parser.md index 0063c69fb..4493aa31a 100644 --- a/apps/tests/xml-parser-tests/xml-parser.md +++ b/apps/tests/xml-parser-tests/xml-parser.md @@ -1,6 +1,6 @@ --- nav-title: "xml How-To" -title: "Xml" +title: "xml" description: "Examples for using xml" --- # Xml module From 457d2bb963c1fbca9a36ad74ae4b74d928395bce Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Mon, 2 May 2016 11:30:59 +0300 Subject: [PATCH 04/16] Move single articles out parent dir --- gruntfile.js | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index 136626241..29f2dc458 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -429,7 +429,7 @@ module.exports = function(grunt) { mochaNode: { cmd: "grunt simplemocha:node" }, - injectArticles: { + injectArticleSnippets: { cmd: "node node_modules/markdown-snippet-injector/index.js --root=<%= localCfg.srcAppsTests %> --docsroot=<%= localCfg.outArticlesDir %>" } }, @@ -663,6 +663,29 @@ module.exports = function(grunt) { grunt.registerTask("distribute-ts-apps-files", [ "copy:readyTsAppFiles" ]); + grunt.registerTask("herdArticles", function() { + var moveSinglesUp = function(dir) { + var objs = fs.readdirSync(dir); + for (var i=0; i Date: Mon, 2 May 2016 11:59:23 +0300 Subject: [PATCH 05/16] Fix a typo --- apps/tests/ui/action-bar/action-bar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tests/ui/action-bar/action-bar.md b/apps/tests/ui/action-bar/action-bar.md index 05f461acc..d15f5153b 100644 --- a/apps/tests/ui/action-bar/action-bar.md +++ b/apps/tests/ui/action-bar/action-bar.md @@ -1,6 +1,6 @@ --- nav-title: "ActionBar How-To" -title: "actiob-bar" +title: "action-bar" description: "Examples for using ActionBar" --- # ActionBar From 3074b6089fb4b7d8c644f322a2630a79e5d86053 Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Mon, 2 May 2016 17:44:58 +0300 Subject: [PATCH 06/16] Move the layouts tests under the layouts dir --- apps/tests/{ => ui}/layouts/absolute-layout-tests.ts | 4 ++-- apps/tests/{ => ui}/layouts/absolute-layout.md | 0 apps/tests/{ => ui}/layouts/common-layout-tests.ts | 6 +++--- apps/tests/{ => ui}/layouts/dock-layout-tests.ts | 4 ++-- apps/tests/{ => ui}/layouts/dock-layout.md | 0 apps/tests/{ => ui}/layouts/grid-layout-tests.ts | 4 ++-- apps/tests/{ => ui}/layouts/grid-layout.md | 0 apps/tests/{ => ui}/layouts/layout-helper.android.ts | 2 +- apps/tests/{ => ui}/layouts/layout-helper.d.ts | 0 apps/tests/{ => ui}/layouts/layout-helper.ios.ts | 4 ++-- apps/tests/{ => ui}/layouts/stack-layout-tests.ts | 4 ++-- apps/tests/{ => ui}/layouts/stack-layout.md | 0 apps/tests/{ => ui}/layouts/wrap-layout-tests.ts | 2 +- apps/tests/{ => ui}/layouts/wrap-layout.md | 0 14 files changed, 15 insertions(+), 15 deletions(-) rename apps/tests/{ => ui}/layouts/absolute-layout-tests.ts (98%) rename apps/tests/{ => ui}/layouts/absolute-layout.md (100%) rename apps/tests/{ => ui}/layouts/common-layout-tests.ts (98%) rename apps/tests/{ => ui}/layouts/dock-layout-tests.ts (98%) rename apps/tests/{ => ui}/layouts/dock-layout.md (100%) rename apps/tests/{ => ui}/layouts/grid-layout-tests.ts (99%) rename apps/tests/{ => ui}/layouts/grid-layout.md (100%) rename apps/tests/{ => ui}/layouts/layout-helper.android.ts (99%) rename apps/tests/{ => ui}/layouts/layout-helper.d.ts (100%) rename apps/tests/{ => ui}/layouts/layout-helper.ios.ts (99%) rename apps/tests/{ => ui}/layouts/stack-layout-tests.ts (99%) rename apps/tests/{ => ui}/layouts/stack-layout.md (100%) rename apps/tests/{ => ui}/layouts/wrap-layout-tests.ts (99%) rename apps/tests/{ => ui}/layouts/wrap-layout.md (100%) diff --git a/apps/tests/layouts/absolute-layout-tests.ts b/apps/tests/ui/layouts/absolute-layout-tests.ts similarity index 98% rename from apps/tests/layouts/absolute-layout-tests.ts rename to apps/tests/ui/layouts/absolute-layout-tests.ts index df28a37a2..3fd0b399d 100644 --- a/apps/tests/layouts/absolute-layout-tests.ts +++ b/apps/tests/ui/layouts/absolute-layout-tests.ts @@ -1,5 +1,5 @@ -import testModule = require("../ui-test"); -import TKUnit = require("../TKUnit"); +import testModule = require("../../ui-test"); +import TKUnit = require("../../TKUnit"); import labelModule = require("ui/label"); import colorModule = require("color"); import layoutHelper = require("./layout-helper"); diff --git a/apps/tests/layouts/absolute-layout.md b/apps/tests/ui/layouts/absolute-layout.md similarity index 100% rename from apps/tests/layouts/absolute-layout.md rename to apps/tests/ui/layouts/absolute-layout.md diff --git a/apps/tests/layouts/common-layout-tests.ts b/apps/tests/ui/layouts/common-layout-tests.ts similarity index 98% rename from apps/tests/layouts/common-layout-tests.ts rename to apps/tests/ui/layouts/common-layout-tests.ts index d1c36909c..f87173408 100644 --- a/apps/tests/layouts/common-layout-tests.ts +++ b/apps/tests/ui/layouts/common-layout-tests.ts @@ -1,7 +1,7 @@ -import TKUnit = require("../TKUnit"); +import TKUnit = require("../../TKUnit"); import layoutHelper = require("./layout-helper"); import enums = require("ui/enums"); -import testModule = require("../ui-test"); +import testModule = require("../../ui-test"); import {LayoutBase} from "ui/layouts/layout-base"; import {widthProperty} from "ui/styling/style" import platform = require("platform"); @@ -152,4 +152,4 @@ export function percent_support_test(test: testModule.UITest) { TKUnit.assertEqual(bounds.top, 0, "Reset Stretch layout TOP incorrect"); TKUnit.assertEqual(bounds.right, 200, "Reset Stretch layout RIGHT incorrect"); TKUnit.assertEqual(bounds.bottom, 200, "Reset Stretch layout BOTTOM incorrect"); -} \ No newline at end of file +} diff --git a/apps/tests/layouts/dock-layout-tests.ts b/apps/tests/ui/layouts/dock-layout-tests.ts similarity index 98% rename from apps/tests/layouts/dock-layout-tests.ts rename to apps/tests/ui/layouts/dock-layout-tests.ts index 06c440475..a209b51d0 100644 --- a/apps/tests/layouts/dock-layout-tests.ts +++ b/apps/tests/ui/layouts/dock-layout-tests.ts @@ -1,8 +1,8 @@ import button = require("ui/button"); import {DockLayout} from "ui/layouts/dock-layout"; -import TKUnit = require("../TKUnit"); +import TKUnit = require("../../TKUnit"); import helper = require("./layout-helper"); -import testModule = require("../ui-test"); +import testModule = require("../../ui-test"); import layoutHelper = require("./layout-helper"); import commonTests = require("./common-layout-tests"); diff --git a/apps/tests/layouts/dock-layout.md b/apps/tests/ui/layouts/dock-layout.md similarity index 100% rename from apps/tests/layouts/dock-layout.md rename to apps/tests/ui/layouts/dock-layout.md diff --git a/apps/tests/layouts/grid-layout-tests.ts b/apps/tests/ui/layouts/grid-layout-tests.ts similarity index 99% rename from apps/tests/layouts/grid-layout-tests.ts rename to apps/tests/ui/layouts/grid-layout-tests.ts index f3ce31fed..34653e4a0 100644 --- a/apps/tests/layouts/grid-layout-tests.ts +++ b/apps/tests/ui/layouts/grid-layout-tests.ts @@ -1,11 +1,11 @@ import {Page} from "ui/page"; import {GridLayout, ItemSpec, GridUnitType} from "ui/layouts/grid-layout"; import {Button} from "ui/button"; -import TKUnit = require("../TKUnit"); +import TKUnit = require("../../TKUnit"); import view = require("ui/core/view"); import builder = require("ui/builder"); import enums = require("ui/enums"); -import testModule = require("../ui-test"); +import testModule = require("../../ui-test"); import layoutHelper = require("./layout-helper"); import platform = require("platform"); import commonTests = require("./common-layout-tests"); diff --git a/apps/tests/layouts/grid-layout.md b/apps/tests/ui/layouts/grid-layout.md similarity index 100% rename from apps/tests/layouts/grid-layout.md rename to apps/tests/ui/layouts/grid-layout.md diff --git a/apps/tests/layouts/layout-helper.android.ts b/apps/tests/ui/layouts/layout-helper.android.ts similarity index 99% rename from apps/tests/layouts/layout-helper.android.ts rename to apps/tests/ui/layouts/layout-helper.android.ts index 83ad1da07..33eec9f32 100644 --- a/apps/tests/layouts/layout-helper.android.ts +++ b/apps/tests/ui/layouts/layout-helper.android.ts @@ -3,7 +3,7 @@ import {StackLayout} from "ui/layouts/stack-layout"; import {GridLayout} from "ui/layouts/grid-layout"; import utils = require("utils/utils"); -import TKUnit = require("../TKUnit"); +import TKUnit = require("../../TKUnit"); import def = require("./layout-helper"); var DELTA = 0.1; diff --git a/apps/tests/layouts/layout-helper.d.ts b/apps/tests/ui/layouts/layout-helper.d.ts similarity index 100% rename from apps/tests/layouts/layout-helper.d.ts rename to apps/tests/ui/layouts/layout-helper.d.ts diff --git a/apps/tests/layouts/layout-helper.ios.ts b/apps/tests/ui/layouts/layout-helper.ios.ts similarity index 99% rename from apps/tests/layouts/layout-helper.ios.ts rename to apps/tests/ui/layouts/layout-helper.ios.ts index ad399eb7b..acb7498ad 100644 --- a/apps/tests/layouts/layout-helper.ios.ts +++ b/apps/tests/ui/layouts/layout-helper.ios.ts @@ -2,7 +2,7 @@ import {StackLayout} from "ui/layouts/stack-layout"; import {GridLayout} from "ui/layouts/grid-layout"; import utils = require("utils/utils"); -import TKUnit = require("../TKUnit"); +import TKUnit = require("../../TKUnit"); import def = require("./layout-helper"); var DELTA = 0.1; @@ -197,4 +197,4 @@ export function dp(value: number): number { export function dip(value: number): number { return utils.layout.toDevicePixels(value); -} \ No newline at end of file +} diff --git a/apps/tests/layouts/stack-layout-tests.ts b/apps/tests/ui/layouts/stack-layout-tests.ts similarity index 99% rename from apps/tests/layouts/stack-layout-tests.ts rename to apps/tests/ui/layouts/stack-layout-tests.ts index 4c0c5a472..8a0be9256 100644 --- a/apps/tests/layouts/stack-layout-tests.ts +++ b/apps/tests/ui/layouts/stack-layout-tests.ts @@ -1,10 +1,10 @@ import {StackLayout} from "ui/layouts/stack-layout"; import {Button} from "ui/button"; -import TKUnit = require("../TKUnit"); +import TKUnit = require("../../TKUnit"); import helper = require("./layout-helper"); import enums = require("ui/enums"); import utils = require("utils/utils"); -import testModule = require("../ui-test"); +import testModule = require("../../ui-test"); import layoutHelper = require("./layout-helper"); import commonTests = require("./common-layout-tests"); diff --git a/apps/tests/layouts/stack-layout.md b/apps/tests/ui/layouts/stack-layout.md similarity index 100% rename from apps/tests/layouts/stack-layout.md rename to apps/tests/ui/layouts/stack-layout.md diff --git a/apps/tests/layouts/wrap-layout-tests.ts b/apps/tests/ui/layouts/wrap-layout-tests.ts similarity index 99% rename from apps/tests/layouts/wrap-layout-tests.ts rename to apps/tests/ui/layouts/wrap-layout-tests.ts index 9c6ec4cbf..784350ea0 100644 --- a/apps/tests/layouts/wrap-layout-tests.ts +++ b/apps/tests/ui/layouts/wrap-layout-tests.ts @@ -1,7 +1,7 @@ import TKUnit = require("../TKUnit"); import {Label} from "ui/label"; import layoutHelper = require("./layout-helper"); -import testModule = require("../ui-test"); +import testModule = require("../../ui-test"); import commonTests = require("./common-layout-tests"); // >> wrap-layout-require diff --git a/apps/tests/layouts/wrap-layout.md b/apps/tests/ui/layouts/wrap-layout.md similarity index 100% rename from apps/tests/layouts/wrap-layout.md rename to apps/tests/ui/layouts/wrap-layout.md From 2b212b63c284b9582e8d1e9de0bd37cffa0cd131 Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Mon, 2 May 2016 17:51:01 +0300 Subject: [PATCH 07/16] Attempt to fix the travis build by reducing the number of the android sdk --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 45a90e478..617bea579 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ env: - PACKAGE_VERSION=$DATE-$TRAVIS_BUILD_NUMBER - PACKAGE_NAME=tns-core-modules - NODE_VERSION=5.10.1 - - EMULATOR_API_VER=22 + - EMULATOR_API_VER=21 - RUNTIMEVERSION=next - AVD_NAME=Arm$EMULATOR_API_VER addons: From a4801c6948a0449e52c07b2542e463af864f903b Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Mon, 2 May 2016 17:53:15 +0300 Subject: [PATCH 08/16] Fix the layouts tests in the tsconfig.json --- tsconfig.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 8469c668c..833f410d8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -173,15 +173,15 @@ "apps/tests/gestures-tests.ts", "apps/tests/http-tests.ts", "apps/tests/image-source-tests.ts", - "apps/tests/layouts/absolute-layout-tests.ts", - "apps/tests/layouts/common-layout-tests.ts", - "apps/tests/layouts/dock-layout-tests.ts", - "apps/tests/layouts/grid-layout-tests.ts", - "apps/tests/layouts/layout-helper.android.ts", - "apps/tests/layouts/layout-helper.d.ts", - "apps/tests/layouts/layout-helper.ios.ts", - "apps/tests/layouts/stack-layout-tests.ts", - "apps/tests/layouts/wrap-layout-tests.ts", + "apps/tests/ui/layouts/absolute-layout-tests.ts", + "apps/tests/ui/layouts/common-layout-tests.ts", + "apps/tests/ui/layouts/dock-layout-tests.ts", + "apps/tests/ui/layouts/grid-layout-tests.ts", + "apps/tests/ui/layouts/layout-helper.android.ts", + "apps/tests/ui/layouts/layout-helper.d.ts", + "apps/tests/ui/layouts/layout-helper.ios.ts", + "apps/tests/ui/layouts/stack-layout-tests.ts", + "apps/tests/ui/layouts/wrap-layout-tests.ts", "apps/tests/location-tests.ts", "apps/tests/navigation/custom-transition.android.ts", "apps/tests/navigation/custom-transition.ios.ts", From 401c39924e0ea9e56f35cc8ad682f9c21028808c Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Mon, 2 May 2016 18:08:46 +0300 Subject: [PATCH 09/16] Fix the build. Improve docs require statements --- apps/tests/ui/layouts/wrap-layout-tests.ts | 2 +- apps/tests/ui/list-picker/list-picker-tests.ts | 6 +++--- apps/tests/ui/list-picker/list-picker.md | 2 +- apps/tests/ui/list-view/list-view-tests.ts | 4 ++-- apps/tests/ui/list-view/list-view.md | 2 +- apps/tests/ui/page/page-tests-common.ts | 4 ++-- apps/tests/ui/page/page.md | 2 +- apps/tests/ui/placeholder/placeholder-tests.ts | 4 ++-- apps/tests/ui/placeholder/placeholder.md | 2 +- apps/tests/ui/progress/progress-tests.ts | 4 ++-- apps/tests/ui/progress/progress.md | 2 +- apps/tests/ui/repeater/repeater-tests.ts | 4 ++-- apps/tests/ui/repeater/repeater.md | 2 +- apps/tests/ui/scroll-view/scroll-view-tests.ts | 6 +++--- apps/tests/ui/scroll-view/scroll-view.md | 2 +- apps/tests/ui/search-bar/search-bar-tests.ts | 4 ++-- apps/tests/ui/search-bar/search-bar.md | 2 +- apps/tests/ui/segmented-bar/segmented-bar-tests.ts | 4 ++-- apps/tests/ui/segmented-bar/segmented-bar.md | 2 +- 19 files changed, 30 insertions(+), 30 deletions(-) diff --git a/apps/tests/ui/layouts/wrap-layout-tests.ts b/apps/tests/ui/layouts/wrap-layout-tests.ts index 784350ea0..0282da099 100644 --- a/apps/tests/ui/layouts/wrap-layout-tests.ts +++ b/apps/tests/ui/layouts/wrap-layout-tests.ts @@ -1,4 +1,4 @@ -import TKUnit = require("../TKUnit"); +import TKUnit = require("../../TKUnit"); import {Label} from "ui/label"; import layoutHelper = require("./layout-helper"); import testModule = require("../../ui-test"); diff --git a/apps/tests/ui/list-picker/list-picker-tests.ts b/apps/tests/ui/list-picker/list-picker-tests.ts index 2bf605312..39a9c711f 100644 --- a/apps/tests/ui/list-picker/list-picker-tests.ts +++ b/apps/tests/ui/list-picker/list-picker-tests.ts @@ -4,9 +4,9 @@ import viewModule = require("ui/core/view"); import listPickerTestsNative = require("./list-picker-tests-native"); import application = require("application"); -// >> article-require-module +// >> article-require-listpicker-module import listPickerModule = require("ui/list-picker"); -// << article-require-module +// << article-require-listpicker-module function _createListPicker(): listPickerModule.ListPicker { // >> article-create-listpicker @@ -227,4 +227,4 @@ export var test_Android_WhenSelectedIndexChangesEditTextIsUpdatedProperly = func var actualValue = (listPicker)._editText.getText().toString(); TKUnit.assert(actualValue === expectedValue, "Actual: " + actualValue + "; Expected: " + expectedValue); }); -} \ No newline at end of file +} diff --git a/apps/tests/ui/list-picker/list-picker.md b/apps/tests/ui/list-picker/list-picker.md index f44bde393..d4c12df02 100644 --- a/apps/tests/ui/list-picker/list-picker.md +++ b/apps/tests/ui/list-picker/list-picker.md @@ -5,7 +5,7 @@ description: "Examples for using ListPicker" --- # ListPicker Using a ListPicker requires the "ui/list-picker" module. - + ## Creating a ListPicker ## Binding listPicker.items diff --git a/apps/tests/ui/list-view/list-view-tests.ts b/apps/tests/ui/list-view/list-view-tests.ts index 107bf721f..c10376391 100644 --- a/apps/tests/ui/list-view/list-view-tests.ts +++ b/apps/tests/ui/list-view/list-view-tests.ts @@ -7,9 +7,9 @@ import platform = require("platform"); import utils = require("utils/utils"); import { Label } from "ui/label"; -// >> article-require-module +// >> article-require-listview-module import listViewModule = require("ui/list-view"); -// << article-require-module +// << article-require-listview-module // >> article-require-modules import observableArray = require("data/observable-array"); diff --git a/apps/tests/ui/list-view/list-view.md b/apps/tests/ui/list-view/list-view.md index 4a775c21a..a4e4b3b8b 100644 --- a/apps/tests/ui/list-view/list-view.md +++ b/apps/tests/ui/list-view/list-view.md @@ -5,7 +5,7 @@ description: "Examples for using list-view" --- # ListView Using a ListView requires the ListView module. - + Other modules which will be used in the code samples in this article: ### Binding the ListView items property to collection in the view-model. diff --git a/apps/tests/ui/page/page-tests-common.ts b/apps/tests/ui/page/page-tests-common.ts index effd343e6..1e5ab5088 100644 --- a/apps/tests/ui/page/page-tests-common.ts +++ b/apps/tests/ui/page/page-tests-common.ts @@ -1,8 +1,8 @@ -// >> article-require-module +// >> article-require-page-module import pageModule = require("ui/page"); //// FrameModule is needed in order to have an option to navigate to the new page. import frameModule = require("ui/frame"); -// << article-require-module +// << article-require-page-module // >> article-set-bindingcontext function pageLoaded(args) { diff --git a/apps/tests/ui/page/page.md b/apps/tests/ui/page/page.md index 85f9ec24e..e34e13ba6 100644 --- a/apps/tests/ui/page/page.md +++ b/apps/tests/ui/page/page.md @@ -5,7 +5,7 @@ description: "Examples for using Page" --- # Page Using a page requires the Page module. - + ### Attaching event handler for the Page loaded event to set bindingContext. ``` XML diff --git a/apps/tests/ui/placeholder/placeholder-tests.ts b/apps/tests/ui/placeholder/placeholder-tests.ts index edf5fb380..9d725b361 100644 --- a/apps/tests/ui/placeholder/placeholder-tests.ts +++ b/apps/tests/ui/placeholder/placeholder-tests.ts @@ -6,9 +6,9 @@ import utils = require("utils/utils"); import helper = require("../helper"); import viewModule = require("ui/core/view"); -// >> article-require-module +// >> article-require-placeholder-module import placeholderModule = require("ui/placeholder"); -// << article-require-module +// << article-require-placeholder-module function creatingView(args) { var nativeView; diff --git a/apps/tests/ui/placeholder/placeholder.md b/apps/tests/ui/placeholder/placeholder.md index 1759b7433..7fc45811a 100644 --- a/apps/tests/ui/placeholder/placeholder.md +++ b/apps/tests/ui/placeholder/placeholder.md @@ -5,7 +5,7 @@ description: "Examples for using placeholder" --- # Placeholder Using the placeholder requires the Placeholder module. - + Creating native view for the Placeholder using creatingView event. ``` XML diff --git a/apps/tests/ui/progress/progress-tests.ts b/apps/tests/ui/progress/progress-tests.ts index 4fc192205..65990d006 100644 --- a/apps/tests/ui/progress/progress-tests.ts +++ b/apps/tests/ui/progress/progress-tests.ts @@ -5,9 +5,9 @@ import observable = require("data/observable"); import color = require("color"); import platform = require("platform"); -// >> article-require-module +// >> article-require-progress-module import progressModule = require("ui/progress"); -// << article-require-module +// << article-require-progress-module export function test_default_TNS_values() { // >> article-create-progress-view diff --git a/apps/tests/ui/progress/progress.md b/apps/tests/ui/progress/progress.md index 1bd09823a..c0331ecb5 100644 --- a/apps/tests/ui/progress/progress.md +++ b/apps/tests/ui/progress/progress.md @@ -5,7 +5,7 @@ description: "Examples for using progress" --- # Progress Using the progress view requires the Progress module. - + Binding the Progress value property to a view-model property. ``` XML diff --git a/apps/tests/ui/repeater/repeater-tests.ts b/apps/tests/ui/repeater/repeater-tests.ts index c192c0f9c..75297c114 100644 --- a/apps/tests/ui/repeater/repeater-tests.ts +++ b/apps/tests/ui/repeater/repeater-tests.ts @@ -10,9 +10,9 @@ import pageModule = require("ui/page"); import gestureModule = require("ui/gestures"); import { Label } from "ui/label"; -// >> article-require-module +// >> article-require-repeater-module import repeaterModule = require("ui/repeater"); -// << article-require-module +// << article-require-repeater-module // >> article-require-modules import observableArray = require("data/observable-array"); diff --git a/apps/tests/ui/repeater/repeater.md b/apps/tests/ui/repeater/repeater.md index d2010c374..326a3ae71 100644 --- a/apps/tests/ui/repeater/repeater.md +++ b/apps/tests/ui/repeater/repeater.md @@ -5,7 +5,7 @@ description: "Examples for using repeater" --- # Repeater Using a Repeater requires the repeater module. - + Other modules which will be used in the code samples in this article: ### Binding the Repeater items property to collection in the view-model. diff --git a/apps/tests/ui/scroll-view/scroll-view-tests.ts b/apps/tests/ui/scroll-view/scroll-view-tests.ts index d8cea51d3..a23cb00c5 100644 --- a/apps/tests/ui/scroll-view/scroll-view-tests.ts +++ b/apps/tests/ui/scroll-view/scroll-view-tests.ts @@ -3,13 +3,13 @@ import app = require("application"); import button = require("ui/button"); import enums = require("ui/enums"); import testModule = require("../../ui-test"); -import layoutHelper = require("../../layouts/layout-helper"); +import layoutHelper = require("../layouts/layout-helper"); import {Page} from "ui/page"; import * as frame from "ui/frame"; -// >> article-require-module +// >> article-require-scrollview-module import scrollViewModule = require("ui/scroll-view"); -// << article-require-module +// << article-require-scrollview-module class ScrollLayoutTest extends testModule.UITest { diff --git a/apps/tests/ui/scroll-view/scroll-view.md b/apps/tests/ui/scroll-view/scroll-view.md index 586940315..bf2132dc8 100644 --- a/apps/tests/ui/scroll-view/scroll-view.md +++ b/apps/tests/ui/scroll-view/scroll-view.md @@ -5,7 +5,7 @@ description: "Examples for using scroll-view" --- # ScrollView Using a ScrollView requires the ScrollView module. - + ### Declaring the ScrollView. ``` XML diff --git a/apps/tests/ui/search-bar/search-bar-tests.ts b/apps/tests/ui/search-bar/search-bar-tests.ts index 9f459311c..b17a04ab6 100644 --- a/apps/tests/ui/search-bar/search-bar-tests.ts +++ b/apps/tests/ui/search-bar/search-bar-tests.ts @@ -4,9 +4,9 @@ import viewModule = require("ui/core/view"); import searchBarTestsNative = require("./search-bar-tests-native"); import colorModule = require("color"); import observable = require("data/observable"); -// >> article-require-module +// >> article-require-searchbar-module import searchBarModule = require("ui/search-bar"); -// << article-require-module +// << article-require-searchbar-module // ### Declaring a SearchBar. //``` XML diff --git a/apps/tests/ui/search-bar/search-bar.md b/apps/tests/ui/search-bar/search-bar.md index a45dac0f7..daa2e65c7 100644 --- a/apps/tests/ui/search-bar/search-bar.md +++ b/apps/tests/ui/search-bar/search-bar.md @@ -5,7 +5,7 @@ description: "Examples for using search-bar" --- # SearchBar Using the SearchBar requires the "ui/search-bar" module. - + ### Creating a SearchBar ### Searching diff --git a/apps/tests/ui/segmented-bar/segmented-bar-tests.ts b/apps/tests/ui/segmented-bar/segmented-bar-tests.ts index 72997ba28..ccd4bd7c8 100644 --- a/apps/tests/ui/segmented-bar/segmented-bar-tests.ts +++ b/apps/tests/ui/segmented-bar/segmented-bar-tests.ts @@ -6,9 +6,9 @@ import bindable = require("ui/core/bindable"); import observable = require("data/observable"); import color = require("color"); -// >> article-require-module +// >> article-require-segmentedbar-module import segmentedBarModule = require("ui/segmented-bar"); -// << article-require-module +// << article-require-segmentedbar-module function _createSegmentedBar(): segmentedBarModule.SegmentedBar { // >> article-create-segmentedbar diff --git a/apps/tests/ui/segmented-bar/segmented-bar.md b/apps/tests/ui/segmented-bar/segmented-bar.md index b98baf47c..a4cb36ce1 100644 --- a/apps/tests/ui/segmented-bar/segmented-bar.md +++ b/apps/tests/ui/segmented-bar/segmented-bar.md @@ -5,7 +5,7 @@ description: "Examples for using SegmentedBar" --- # SegmentedBar Using a SegmentedBar requires the "ui/segmented-bar" module. - + ## Creating a SegmentedBar ``` XML From 4d6bdaa710d5cdf9175d85597b506b0549577d99 Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Mon, 2 May 2016 18:11:16 +0300 Subject: [PATCH 10/16] Revert "Attempt to fix the travis build by reducing the number of the android sdk" This reverts commit 2b212b63c284b9582e8d1e9de0bd37cffa0cd131. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 617bea579..45a90e478 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ env: - PACKAGE_VERSION=$DATE-$TRAVIS_BUILD_NUMBER - PACKAGE_NAME=tns-core-modules - NODE_VERSION=5.10.1 - - EMULATOR_API_VER=21 + - EMULATOR_API_VER=22 - RUNTIMEVERSION=next - AVD_NAME=Arm$EMULATOR_API_VER addons: From d3f2f69983452aa9be79375f06a14e545188ca04 Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Tue, 3 May 2016 11:09:47 +0300 Subject: [PATCH 11/16] Fix the layouts dir test locations --- apps/tests/testRunner.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/tests/testRunner.ts b/apps/tests/testRunner.ts index fc40fa3fb..9c5fe0368 100644 --- a/apps/tests/testRunner.ts +++ b/apps/tests/testRunner.ts @@ -57,11 +57,11 @@ allTests["PROXY-VIEW-CONTAINER"] = require("./ui/proxy-view-container/proxy-view allTests["SCROLL-VIEW"] = require("./ui/scroll-view/scroll-view-tests"); allTests["ACTION-BAR"] = require("./ui/action-bar/action-bar-tests"); allTests["XML-DECLARATION"] = require("./xml-declaration/xml-declaration-tests"); -allTests["DOCKLAYOUT"] = require("./layouts/dock-layout-tests"); -allTests["WRAPLAYOUT"] = require("./layouts/wrap-layout-tests"); -allTests["ABSOLUTELAYOUT"] = require("./layouts/absolute-layout-tests"); -allTests["GRIDLAYOUT"] = require("./layouts/grid-layout-tests"); -allTests["STACKLAYOUT"] = require("./layouts/stack-layout-tests"); +allTests["DOCKLAYOUT"] = require("./ui/layouts/dock-layout-tests"); +allTests["WRAPLAYOUT"] = require("./ui/layouts/wrap-layout-tests"); +allTests["ABSOLUTELAYOUT"] = require("./ui/layouts/absolute-layout-tests"); +allTests["GRIDLAYOUT"] = require("./ui/layouts/grid-layout-tests"); +allTests["STACKLAYOUT"] = require("./ui/layouts/stack-layout-tests"); allTests["STYLE-PROPERTIES"] = require("./ui/style/style-properties-tests"); allTests["FRAME"] = require("./frame-tests"); allTests["VIEW"] = require("./ui/view/view-tests"); From 361fce2b76d8aa6a119ba2d60b3b96770c44e594 Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Tue, 3 May 2016 10:15:19 +0300 Subject: [PATCH 12/16] Remove the sudo to try fixing the build --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 45a90e478..391fb59dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ addons: artifacts: paths: - "$HOME/test-run-results$PACKAGE_VERSION.xml" -sudo: required +sudo: false dist: trusty language: android node_js: From 4e4a69c28258a277630ed828d28570c8c3f5d1c2 Mon Sep 17 00:00:00 2001 From: Nedyalko Nikolov Date: Tue, 3 May 2016 14:23:30 +0300 Subject: [PATCH 13/16] Additional fix for changing binding context issue. --- apps/tests/ui/bindable-tests.ts | 54 +++++++++++++++++++++++++++++++++ ui/core/bindable.ts | 10 ++++-- 2 files changed, 61 insertions(+), 3 deletions(-) diff --git a/apps/tests/ui/bindable-tests.ts b/apps/tests/ui/bindable-tests.ts index 37a6b9b1c..8d9b4aef6 100644 --- a/apps/tests/ui/bindable-tests.ts +++ b/apps/tests/ui/bindable-tests.ts @@ -492,6 +492,7 @@ export var test_bindingToNestedPropertyWithValueSyntax = function () { }, bindingSource); TKUnit.assertEqual(testElement.get("targetPropertyName"), "testValue"); + TKUnit.assertTrue(bindingSource['$value'] === undefined, "We should not add $value to bindingSource."); } export var test_TwoElementsBindingToSameBindingContext = function () { @@ -546,6 +547,58 @@ export var test_BindingToSource_FailsAfterBindingContextChange = function () { helper.buildUIAndRunTest(createLabel(), testFunc); } +export var test_BindingToParentView_ShouldNotLeaveGarbageInViewModel = function () { + var createStack = function () { + var stack = new stackLayoutModule.StackLayout(); + var label = new labelModule.Label(); + stack.addChild(label); + return stack; + } + var stackViewModel = new observable.Observable(); + var expectedValue = "testValue"; + stackViewModel.set("testProperty", expectedValue); + + var testFunc = function (views: Array) { + let testStack = (views[0]); + testStack.bindingContext = stackViewModel; + + let testLabel = (testStack.getChildAt(0)); + testLabel.bind({ sourceProperty: "$parent.testProperty", targetProperty: "text", expression: "$parent.testProperty"}); + + TKUnit.assertEqual(testLabel.text, expectedValue); + TKUnit.assertTrue(stackViewModel['$parent'] === undefined, "stackViewModel['$parent'] should be removed from parent binding context."); + TKUnit.assertTrue(testLabel.bindingContext['$parent'] === undefined, "testLabel.bindingContext['$parent'] should be removed from parent binding context."); + } + + helper.buildUIAndRunTest(createStack(), testFunc); +} + +export var test_BindingToParentsView_ShouldNotLeaveGarbageInViewModel = function () { + var createStack = function () { + var stack = new stackLayoutModule.StackLayout(); + var label = new labelModule.Label(); + stack.addChild(label); + return stack; + } + var stackViewModel = new observable.Observable(); + var expectedValue = "testValue"; + stackViewModel.set("testProperty", expectedValue); + + var testFunc = function (views: Array) { + let testStack = (views[0]); + testStack.bindingContext = stackViewModel; + + let testLabel = (testStack.getChildAt(0)); + testLabel.bind({ sourceProperty: "$parents['StackLayout'].testProperty", targetProperty: "text", expression: "$parents['StackLayout'].testProperty"}); + + TKUnit.assertEqual(testLabel.text, expectedValue); + TKUnit.assertTrue(stackViewModel['$parent'] === undefined, "stackViewModel['$parent'] should be removed from parent binding context."); + TKUnit.assertTrue(testLabel.bindingContext['$parents'] === undefined, "testLabel.bindingContext['$parents'] should be removed from parent binding context."); + } + + helper.buildUIAndRunTest(createStack(), testFunc); +} + export function test_BindingToDictionaryAtAppLevel() { var createLabel = function () { var label = new labelModule.Label(); @@ -998,6 +1051,7 @@ export function test_$ValueSupportWithinExpression() { model.set("anyColor", "red"); TKUnit.assertEqual(bindableObj.get("test"), "red", "When anyColor is red test property should be red too."); + TKUnit.assertTrue(model['$value'] === undefined, "We should not add $value to binding context."); } class DummyNestedClass extends observable.Observable { diff --git a/ui/core/bindable.ts b/ui/core/bindable.ts index 03aa093e4..3c036333e 100644 --- a/ui/core/bindable.ts +++ b/ui/core/bindable.ts @@ -330,7 +330,7 @@ export class Binding { } let updateExpression = this.prepareExpressionForUpdate(); - this.prepareContextForExpression(changedModel, updateExpression); + this.prepareContextForExpression(changedModel, updateExpression, undefined); let expressionValue = this._getExpressionValue(updateExpression, true, changedModel); if (expressionValue instanceof Error) { @@ -357,7 +357,7 @@ export class Binding { } } - this.prepareContextForExpression(context, expression); + this.prepareContextForExpression(context, expression, addedProps); model[contextKey] = context; let result = exp.getValue(model, isBackConvert, changedModel ? changedModel : model); // clear added props @@ -443,17 +443,20 @@ export class Binding { } } - private prepareContextForExpression(model: Object, expression: string) { + private prepareContextForExpression(model: Object, expression: string, newProps: Array) { let parentViewAndIndex: { view: viewModule.View, index: number }; let parentView; + let addedProps = newProps || []; if (expression.indexOf(bc.bindingValueKey) > -1) { model[bc.bindingValueKey] = model; + addedProps.push(bc.bindingValueKey); } if (expression.indexOf(bc.parentValueKey) > -1) { parentView = this.getParentView(this.target.get(), bc.parentValueKey).view; if (parentView) { model[bc.parentValueKey] = parentView.bindingContext; + addedProps.push(bc.parentValueKey); } } @@ -464,6 +467,7 @@ export class Binding { if (parentViewAndIndex.view) { model[bc.parentsValueKey] = model[bc.parentsValueKey] || {}; model[bc.parentsValueKey][parentViewAndIndex.index] = parentViewAndIndex.view.bindingContext; + addedProps.push(bc.parentsValueKey); } } } From 2cc1259bfd75e533703435ab4ba83c4fe2033578 Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Tue, 3 May 2016 17:02:49 +0300 Subject: [PATCH 14/16] Fixed: WebView still visible in chrome://inspect after page is destroyed Resolves #2053 --- ui/web-view/web-view.android.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/web-view/web-view.android.ts b/ui/web-view/web-view.android.ts index 8ecc3b384..fed4f76f3 100644 --- a/ui/web-view/web-view.android.ts +++ b/ui/web-view/web-view.android.ts @@ -105,6 +105,13 @@ export class WebView extends common.WebView { this._android.setWebViewClient(this._webViewClient); } + public _onDetached(force?: boolean) { + if (this.android) { + this.android.destroy(); + } + super._onDetached(force); + } + public _loadUrl(url: string) { if (!this._android) { return; From b3b22ae2e495f1b0c3dca4cba5817373e2bcdf38 Mon Sep 17 00:00:00 2001 From: Nedyalko Nikolov Date: Wed, 4 May 2016 11:28:12 +0300 Subject: [PATCH 15/16] Fixed css specifity levels for type selectors. --- apps/tests/ui/style/style-tests.ts | 26 ++++++++++++++++++++++++++ ui/styling/css-selector.ts | 7 ++++++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/apps/tests/ui/style/style-tests.ts b/apps/tests/ui/style/style-tests.ts index 1a0d7b585..c3027bf23 100644 --- a/apps/tests/ui/style/style-tests.ts +++ b/apps/tests/ui/style/style-tests.ts @@ -1400,6 +1400,32 @@ export function test_alone_attr_selector() { } helper.buildUIAndRunTest(testButton, testFunc, testCss); } + +export function test_UsingSameSelectors_ShouldApplyLatest() { + let testButton = new buttonModule.Button(); + testButton.className = 'green'; + + let testCss = ".green { background-color: #FF0000; } .green { background-color: #00FF00; }"; + + let testFunc = function (views: Array) { + // style from correct type css should be applied + helper.assertViewBackgroundColor(testButton, "#00FF00"); + } + helper.buildUIAndRunTest(testButton, testFunc, testCss); +} + +export function test_UsingSameSelectorsWithSpecific_ShouldApplyLatest() { + let testButton = new buttonModule.Button(); + testButton.className = 'red green'; + + let testCss = ".red { background-color: #FF0000; } Button.green { background-color: #00FF00; }"; + + let testFunc = function (views: Array) { + // style from correct type css should be applied + helper.assertViewBackgroundColor(testButton, "#00FF00"); + } + helper.buildUIAndRunTest(testButton, testFunc, testCss); +} // // For information and example how to use style properties please refer to special [**Styling**](../../../styling.md) topic. // diff --git a/ui/styling/css-selector.ts b/ui/styling/css-selector.ts index 026d52a5f..15f6b2121 100644 --- a/ui/styling/css-selector.ts +++ b/ui/styling/css-selector.ts @@ -143,7 +143,12 @@ export class CssSelector { class CssTypeSelector extends CssSelector { get specificity(): number { - return TYPE_SPECIFICITY; + let result = TYPE_SPECIFICITY; + let dotIndex = this.expression.indexOf(DOT); + if (dotIndex > -1) { + result += CLASS_SPECIFICITY; + } + return result; } public matches(view: view.View): boolean { let result = matchesType(this.expression, view); From f15f283c74e74e0e9b6887769c6498c7ae57c0e0 Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Thu, 5 May 2016 10:43:35 +0300 Subject: [PATCH 16/16] Reorder test file structure to match the modules Needed to have a nice structured cookbook dir in the docs Includes: Move the data-module tests under the data dir Move the frame tests under the ui dir Rename the dialog.md file to dialogs.md Fix the web-view title Add previous_url attributes to each article for SEO Rename the style dir to styling to match the reference Fix the frame-tests path --- CrossPlatformModules.csproj | 18 +++++++++--------- apps/tests/application-settings.md | 1 + apps/tests/application.md | 1 + apps/tests/camera.md | 1 + apps/tests/color.md | 1 + apps/tests/connectivity.md | 1 + apps/tests/console.md | 1 + .../tests/{ => data}/observable-array-tests.ts | 2 +- apps/tests/{ => data}/observable-array.md | 1 + apps/tests/{ => data}/observable-tests.ts | 4 ++-- apps/tests/{ => data}/observable.md | 1 + apps/tests/{ => data}/virtual-array-tests.ts | 2 +- apps/tests/{ => data}/virtual-array.md | 1 + apps/tests/fetch.md | 1 + apps/tests/file-system.md | 1 + apps/tests/fps-meter.md | 1 + apps/tests/http.md | 1 + apps/tests/image-source.md | 1 + apps/tests/location.md | 1 + apps/tests/platform.md | 1 + apps/tests/testRunner.ts | 16 ++++++++-------- apps/tests/text/formatted-string.md | 1 + apps/tests/timer.md | 1 + apps/tests/trace.md | 1 + apps/tests/ui/action-bar/action-bar.md | 1 + .../activity-indicator/activity-indicator.md | 1 + apps/tests/ui/animation/animation.md | 1 + apps/tests/ui/border/border.md | 1 + apps/tests/ui/button/button.md | 1 + apps/tests/ui/date-picker/date-picker.md | 1 + .../tests/ui/dialogs/{dialog.md => dialogs.md} | 1 + apps/tests/{ => ui/frame}/frame-tests.ts | 0 apps/tests/{ => ui/frame}/frame.md | 1 + apps/tests/{ => ui/gestures}/gestures-tests.ts | 0 apps/tests/{ => ui/gestures}/gestures.md | 1 + apps/tests/ui/html-view/htm-view.md | 1 + apps/tests/ui/image-cache/image-cache.md | 1 + apps/tests/ui/image/image.md | 1 + apps/tests/ui/label/label.md | 1 + apps/tests/ui/layouts/absolute-layout.md | 1 + apps/tests/ui/layouts/dock-layout.md | 1 + apps/tests/ui/layouts/grid-layout.md | 1 + apps/tests/ui/layouts/stack-layout.md | 1 + apps/tests/ui/layouts/wrap-layout.md | 1 + apps/tests/ui/list-picker/list-picker.md | 1 + apps/tests/ui/list-view/list-view.md | 1 + apps/tests/ui/page/page.md | 1 + apps/tests/ui/placeholder/placeholder.md | 1 + apps/tests/ui/progress/progress.md | 1 + apps/tests/ui/repeater/repeater.md | 1 + apps/tests/ui/scroll-view/scroll-view.md | 1 + apps/tests/ui/search-bar/search-bar.md | 1 + apps/tests/ui/segmented-bar/segmented-bar.md | 1 + apps/tests/ui/slider/slider.md | 1 + .../style-properties-tests.ts | 0 .../tests/ui/{style => styling}/style-tests.ts | 6 +++--- .../ui/{style/style.md => styling/styling.md} | 1 + apps/tests/ui/{style => styling}/test.css | 0 .../{style => styling}/value-source-tests.ts | 0 .../{style => styling}/visual-state-tests.ts | 0 apps/tests/ui/switch/switch.md | 1 + apps/tests/ui/tab-view/tab-view.md | 1 + apps/tests/ui/text-field/text-field.md | 1 + apps/tests/ui/text-view/text-view.md | 1 + apps/tests/ui/time-picker/time-picker.md | 1 + apps/tests/ui/web-view/web-view.md | 3 ++- apps/tests/xml-parser-tests/xml-parser.md | 1 + tsconfig.json | 18 +++++++++--------- 68 files changed, 89 insertions(+), 34 deletions(-) rename apps/tests/{ => data}/observable-array-tests.ts (99%) rename apps/tests/{ => data}/observable-array.md (98%) rename apps/tests/{ => data}/observable-tests.ts (99%) rename apps/tests/{ => data}/observable.md (87%) rename apps/tests/{ => data}/virtual-array-tests.ts (99%) rename apps/tests/{ => data}/virtual-array.md (94%) rename apps/tests/ui/dialogs/{dialog.md => dialogs.md} (89%) rename apps/tests/{ => ui/frame}/frame-tests.ts (100%) rename apps/tests/{ => ui/frame}/frame.md (91%) rename apps/tests/{ => ui/gestures}/gestures-tests.ts (100%) rename apps/tests/{ => ui/gestures}/gestures.md (96%) rename apps/tests/ui/{style => styling}/style-properties-tests.ts (100%) rename apps/tests/ui/{style => styling}/style-tests.ts (99%) rename apps/tests/ui/{style/style.md => styling/styling.md} (92%) rename apps/tests/ui/{style => styling}/test.css (100%) rename apps/tests/ui/{style => styling}/value-source-tests.ts (100%) rename apps/tests/ui/{style => styling}/visual-state-tests.ts (100%) diff --git a/CrossPlatformModules.csproj b/CrossPlatformModules.csproj index 9dfa73372..11296a677 100644 --- a/CrossPlatformModules.csproj +++ b/CrossPlatformModules.csproj @@ -447,8 +447,8 @@ - - + + @@ -548,7 +548,7 @@ - + @@ -720,7 +720,7 @@ - + @@ -737,7 +737,7 @@ - + @@ -1180,7 +1180,7 @@ Designer - + Designer @@ -1464,7 +1464,7 @@ - + xml.d.ts @@ -1634,7 +1634,7 @@ utils.d.ts - + @@ -2233,4 +2233,4 @@ - \ No newline at end of file + diff --git a/apps/tests/application-settings.md b/apps/tests/application-settings.md index d83971a12..9b1df32ef 100644 --- a/apps/tests/application-settings.md +++ b/apps/tests/application-settings.md @@ -2,6 +2,7 @@ nav-title: "application-settings How-To" title: "application-settings" description: "Examples for using application-settings" +previous_url: /ApiReference/application-settings/HOW-TO --- # Application Settings Using application settings methods requires to load "application settings" module. diff --git a/apps/tests/application.md b/apps/tests/application.md index 062a0cf3e..9795a102a 100644 --- a/apps/tests/application.md +++ b/apps/tests/application.md @@ -2,6 +2,7 @@ nav-title: "application How-To" title: "application" description: "Examples for using application" +previous_url: /ApiReference/application/HOW-TO --- # Application The Application module provides abstraction over the platform-specific Application implementations. diff --git a/apps/tests/camera.md b/apps/tests/camera.md index def09ad59..9feea38d3 100644 --- a/apps/tests/camera.md +++ b/apps/tests/camera.md @@ -2,6 +2,7 @@ nav-title: "camera How-To" title: "camera" description: "Examples for using camera" +previous_url: /ApiReference/camera/HOW-TO --- # Camera module Using a camera requires the camera module. diff --git a/apps/tests/color.md b/apps/tests/color.md index 01693fcd5..b738ae157 100644 --- a/apps/tests/color.md +++ b/apps/tests/color.md @@ -2,6 +2,7 @@ nav-title: "color How-To" title: "color" description: "Examples for using color" +previous_url: /ApiReference/color/HOW-TO --- # Color Using Colors requires the "color" module. diff --git a/apps/tests/connectivity.md b/apps/tests/connectivity.md index 98d5419cb..3e9518f03 100644 --- a/apps/tests/connectivity.md +++ b/apps/tests/connectivity.md @@ -2,6 +2,7 @@ nav-title: "connectivity How-To" title: "connectivity" description: "Examples for using connectivity" +previous_url: /ApiReference/connectivity/HOW-TO --- # Connectivity Obtaining connectivity information requires the "connectivity" module. diff --git a/apps/tests/console.md b/apps/tests/console.md index 9ad641c65..bbcdcd698 100644 --- a/apps/tests/console.md +++ b/apps/tests/console.md @@ -2,6 +2,7 @@ nav-title: "console How-To" title: "console" description: "Examples for using console" +previous_url: /ApiReference/console/HOW-TO --- # Console ### Logging diff --git a/apps/tests/observable-array-tests.ts b/apps/tests/data/observable-array-tests.ts similarity index 99% rename from apps/tests/observable-array-tests.ts rename to apps/tests/data/observable-array-tests.ts index 675ab0210..e8e0a8a9e 100644 --- a/apps/tests/observable-array-tests.ts +++ b/apps/tests/data/observable-array-tests.ts @@ -1,4 +1,4 @@ -import TKUnit = require("./TKUnit"); +import TKUnit = require("../TKUnit"); import bindableModule = require("ui/core/bindable"); require("globals"); diff --git a/apps/tests/observable-array.md b/apps/tests/data/observable-array.md similarity index 98% rename from apps/tests/observable-array.md rename to apps/tests/data/observable-array.md index 9743ac199..45ce86e19 100644 --- a/apps/tests/observable-array.md +++ b/apps/tests/data/observable-array.md @@ -2,6 +2,7 @@ nav-title: "observable-array How-To" title: "observable-array" description: "Examples for using observable-array" +previous_url: /ApiReference/data/observable-array/HOW-TO --- # Observable Array module diff --git a/apps/tests/observable-tests.ts b/apps/tests/data/observable-tests.ts similarity index 99% rename from apps/tests/observable-tests.ts rename to apps/tests/data/observable-tests.ts index 2dd833fdd..9a06f14ca 100644 --- a/apps/tests/observable-tests.ts +++ b/apps/tests/data/observable-tests.ts @@ -3,7 +3,7 @@ import observable = require("data/observable"); // << observable-require import dependencyObservable = require("ui/core/dependency-observable"); -import TKUnit = require("./TKUnit"); +import TKUnit = require("../TKUnit"); import types = require("utils/types"); import proxy = require("ui/core/proxy"); @@ -524,4 +524,4 @@ export function test_CorrectPropertyValueAfterUsingWrappedValue() { testObservable.set("property1", wrappedArray); TKUnit.assertEqual(testObservable.get("property1"), testArray, "WrappedValue is used only to execute property change logic and unwrapped value should be used as proeprty value."); -} \ No newline at end of file +} diff --git a/apps/tests/observable.md b/apps/tests/data/observable.md similarity index 87% rename from apps/tests/observable.md rename to apps/tests/data/observable.md index 5f2175561..b1b7d0558 100644 --- a/apps/tests/observable.md +++ b/apps/tests/data/observable.md @@ -2,6 +2,7 @@ nav-title: "data/observable How-To" title: "observable" description: "Examples for using data/observable" +previous_url: /ApiReference/data/observable/HOW-TO --- # Observable Using Observable objects requires the "data/observable" module. diff --git a/apps/tests/virtual-array-tests.ts b/apps/tests/data/virtual-array-tests.ts similarity index 99% rename from apps/tests/virtual-array-tests.ts rename to apps/tests/data/virtual-array-tests.ts index bf521df44..d12a0a511 100644 --- a/apps/tests/virtual-array-tests.ts +++ b/apps/tests/data/virtual-array-tests.ts @@ -1,4 +1,4 @@ -import TKUnit = require("./TKUnit"); +import TKUnit = require("../TKUnit"); import types = require("utils/types"); // >> virtual-array-require diff --git a/apps/tests/virtual-array.md b/apps/tests/data/virtual-array.md similarity index 94% rename from apps/tests/virtual-array.md rename to apps/tests/data/virtual-array.md index 521e263c4..b9a13c266 100644 --- a/apps/tests/virtual-array.md +++ b/apps/tests/data/virtual-array.md @@ -2,6 +2,7 @@ nav-title: "virtual-array How-To" title: "virtual-array" description: "Examples for using virtual-array" +previous_url: /ApiReference/data/virtual-array/HOW-TO --- # Virtual Array module diff --git a/apps/tests/fetch.md b/apps/tests/fetch.md index 6ba31fc40..eaf8c1099 100644 --- a/apps/tests/fetch.md +++ b/apps/tests/fetch.md @@ -2,6 +2,7 @@ nav-title: "fetch How-To" title: "fetch" description: "Examples for using fetch" +previous_url: /ApiReference/fetch/HOW-TO --- ### Get Response from URL diff --git a/apps/tests/file-system.md b/apps/tests/file-system.md index 6abd30f9a..edcd0d159 100644 --- a/apps/tests/file-system.md +++ b/apps/tests/file-system.md @@ -2,6 +2,7 @@ nav-title: "file-system How-To" title: "file-system" description: "Examples for using file-system" +previous_url: /ApiReference/file-system/HOW-TO --- # File System Using the file system requires the FileSystem module. diff --git a/apps/tests/fps-meter.md b/apps/tests/fps-meter.md index 9ea7115dd..04066597c 100644 --- a/apps/tests/fps-meter.md +++ b/apps/tests/fps-meter.md @@ -2,6 +2,7 @@ nav-title: "fps-meter How-To" title: "fps-meter" description: "Examples for using fps-meter" +previous_url: /ApiReference/fps-meter/HOW-TO --- # Frames-per-second meter Logging frames-per-second statistics for your app requires the "fps-meter" module. diff --git a/apps/tests/http.md b/apps/tests/http.md index f4c30c12a..fb6fd0fd1 100644 --- a/apps/tests/http.md +++ b/apps/tests/http.md @@ -2,6 +2,7 @@ nav-title: "http How-To" title: "http" description: "Examples for using http" +previous_url: /ApiReference/http/HOW-TO --- # Http module Using http methods requires to load "http" module. diff --git a/apps/tests/image-source.md b/apps/tests/image-source.md index 109c6786c..009e1fa6d 100644 --- a/apps/tests/image-source.md +++ b/apps/tests/image-source.md @@ -2,6 +2,7 @@ nav-title: "image-source How-To" title: "image-source" description: "Examples for using image-source" +previous_url: /ApiReference/image-source/HOW-TO --- # Image source Using the image source requires the image-source module. diff --git a/apps/tests/location.md b/apps/tests/location.md index 92f1a494a..0ab1d5596 100644 --- a/apps/tests/location.md +++ b/apps/tests/location.md @@ -2,6 +2,7 @@ nav-title: "location How-To" title: "location" description: "Examples for using location" +previous_url: /ApiReference/location/HOW-TO --- # Location Using the location requires the Location module. diff --git a/apps/tests/platform.md b/apps/tests/platform.md index c41cee075..e27f801b2 100644 --- a/apps/tests/platform.md +++ b/apps/tests/platform.md @@ -2,6 +2,7 @@ nav-title: "platform How-To" title: "platform" description: "Examples for using platform" +previous_url: /ApiReference/platform/HOW-TO --- # Platform Information about the current device and screen are defined in the platform module diff --git a/apps/tests/testRunner.ts b/apps/tests/testRunner.ts index 9c5fe0368..20c7b656e 100644 --- a/apps/tests/testRunner.ts +++ b/apps/tests/testRunner.ts @@ -38,9 +38,9 @@ allTests["FETCH"] = require("./fetch-tests"); allTests["APPLICATION SETTINGS"] = require("./application-settings-tests"); allTests["APPLICATION"] = require("./application-tests"); allTests["IMAGE SOURCE"] = require("./image-source-tests"); -allTests["OBSERVABLE-ARRAY"] = require("./observable-array-tests"); -allTests["VIRTUAL-ARRAY"] = require("./virtual-array-tests"); -allTests["OBSERVABLE"] = require("./observable-tests"); +allTests["OBSERVABLE-ARRAY"] = require("./data/observable-array-tests"); +allTests["VIRTUAL-ARRAY"] = require("./data/virtual-array-tests"); +allTests["OBSERVABLE"] = require("./data/observable-tests"); allTests["TIMER"] = require("./timer-tests"); allTests["COLOR"] = require("./color-tests"); allTests["DEPENDENCY-OBSERVABLE"] = require("./ui/dependency-observable-tests"); @@ -62,12 +62,12 @@ allTests["WRAPLAYOUT"] = require("./ui/layouts/wrap-layout-tests"); allTests["ABSOLUTELAYOUT"] = require("./ui/layouts/absolute-layout-tests"); allTests["GRIDLAYOUT"] = require("./ui/layouts/grid-layout-tests"); allTests["STACKLAYOUT"] = require("./ui/layouts/stack-layout-tests"); -allTests["STYLE-PROPERTIES"] = require("./ui/style/style-properties-tests"); -allTests["FRAME"] = require("./frame-tests"); +allTests["STYLE-PROPERTIES"] = require("./ui/styling/style-properties-tests"); +allTests["FRAME"] = require("./ui/frame/frame-tests"); allTests["VIEW"] = require("./ui/view/view-tests"); -allTests["STYLE"] = require("./ui/style/style-tests"); -allTests["VISUAL-STATE"] = require("./ui/style/visual-state-tests"); -allTests["VALUE-SOURCE"] = require("./ui/style/value-source-tests"); +allTests["STYLE"] = require("./ui/styling/style-tests"); +allTests["VISUAL-STATE"] = require("./ui/styling/visual-state-tests"); +allTests["VALUE-SOURCE"] = require("./ui/styling/value-source-tests"); allTests["BUTTON"] = require("./ui/button/button-tests"); allTests["BORDER"] = require("./ui/border/border-tests"); allTests["LABEL"] = require("./ui/label/label-tests"); diff --git a/apps/tests/text/formatted-string.md b/apps/tests/text/formatted-string.md index 0532cb798..11a8eb27d 100644 --- a/apps/tests/text/formatted-string.md +++ b/apps/tests/text/formatted-string.md @@ -2,6 +2,7 @@ nav-title: "Formatted String How-To" title: "formatted-string" description: "Examples for using Formatted String" +previous_url: /ApiReference/text/formatted-string/HOW-TO --- # Formatted String Using a formatted string requires loading formatted-string and span module. diff --git a/apps/tests/timer.md b/apps/tests/timer.md index 15e53a805..9fb438707 100644 --- a/apps/tests/timer.md +++ b/apps/tests/timer.md @@ -2,6 +2,7 @@ nav-title: "timer How-To" title: "timer" description: "Examples for using timer" +previous_url: /ApiReference/timer/HOW-TO --- # Timer module ### How to require timer module diff --git a/apps/tests/trace.md b/apps/tests/trace.md index 076213d7f..97a6c967e 100644 --- a/apps/tests/trace.md +++ b/apps/tests/trace.md @@ -2,6 +2,7 @@ nav-title: "trace How-To" title: "trace" description: "Examples for using trace" +previous_url: /ApiReference/trace/HOW-TO --- # Trace Tracing information about your app requires the "trace" module. diff --git a/apps/tests/ui/action-bar/action-bar.md b/apps/tests/ui/action-bar/action-bar.md index d15f5153b..4c2464a5f 100644 --- a/apps/tests/ui/action-bar/action-bar.md +++ b/apps/tests/ui/action-bar/action-bar.md @@ -2,6 +2,7 @@ nav-title: "ActionBar How-To" title: "action-bar" description: "Examples for using ActionBar" +previous_url: /ApiReference/ui/action-bar/HOW-TO --- # ActionBar Using a ActionBar requires the action-bar module. diff --git a/apps/tests/ui/activity-indicator/activity-indicator.md b/apps/tests/ui/activity-indicator/activity-indicator.md index 830d5aac3..9d990d207 100644 --- a/apps/tests/ui/activity-indicator/activity-indicator.md +++ b/apps/tests/ui/activity-indicator/activity-indicator.md @@ -2,6 +2,7 @@ nav-title: "activity-indicator How-To" title: "activity-indicator" description: "Examples for using activity-indicator" +previous_url: /ApiReference/ui/activity-indicator/HOW-TO --- # ActivityIndicator Using the activity indicator requires the ActivityIndicator module. diff --git a/apps/tests/ui/animation/animation.md b/apps/tests/ui/animation/animation.md index cfe479c96..1512f4bcc 100644 --- a/apps/tests/ui/animation/animation.md +++ b/apps/tests/ui/animation/animation.md @@ -2,6 +2,7 @@ nav-title: "animation How-To" title: "animation" description: "Examples for using animation" +previous_url: /ApiReference/ui/animation/HOW-TO --- # Animation Animating view properties requires the "ui/animation" module. diff --git a/apps/tests/ui/border/border.md b/apps/tests/ui/border/border.md index 1656a157e..8e59019b2 100644 --- a/apps/tests/ui/border/border.md +++ b/apps/tests/ui/border/border.md @@ -2,6 +2,7 @@ nav-title: "Border How-To" title: "border" description: "Examples for using Border" +previous_url: /ApiReference/ui/border/HOW-TO --- # Border Using borders requires the "ui/border" module. diff --git a/apps/tests/ui/button/button.md b/apps/tests/ui/button/button.md index b2c50cfa8..a169be073 100644 --- a/apps/tests/ui/button/button.md +++ b/apps/tests/ui/button/button.md @@ -2,6 +2,7 @@ nav-title: "button How-To" title: "button" description: "Examples for using button" +previous_url: /ApiReference/ui/button/HOW-TO --- # Button ### Declaring button module diff --git a/apps/tests/ui/date-picker/date-picker.md b/apps/tests/ui/date-picker/date-picker.md index a031a0136..1df9a0076 100644 --- a/apps/tests/ui/date-picker/date-picker.md +++ b/apps/tests/ui/date-picker/date-picker.md @@ -2,6 +2,7 @@ nav-title: "DatePicker How-To" title: "date-picker" description: "Examples for using DatePicker" +previous_url: /ApiReference/ui/date-picker/HOW-TO --- # DatePicker Using a DatePicker requires the "ui/date-picker" module. diff --git a/apps/tests/ui/dialogs/dialog.md b/apps/tests/ui/dialogs/dialogs.md similarity index 89% rename from apps/tests/ui/dialogs/dialog.md rename to apps/tests/ui/dialogs/dialogs.md index eb02f4636..35f684aea 100644 --- a/apps/tests/ui/dialogs/dialog.md +++ b/apps/tests/ui/dialogs/dialogs.md @@ -2,6 +2,7 @@ nav-title: "dialogs How-To" title: "dialogs" description: "Examples for using dialogs" +previous_url: /ApiReference/ui/dialogs/HOW-TO --- # Dialogs Displaying dialogs requires the "ui/dialogs" module. diff --git a/apps/tests/frame-tests.ts b/apps/tests/ui/frame/frame-tests.ts similarity index 100% rename from apps/tests/frame-tests.ts rename to apps/tests/ui/frame/frame-tests.ts diff --git a/apps/tests/frame.md b/apps/tests/ui/frame/frame.md similarity index 91% rename from apps/tests/frame.md rename to apps/tests/ui/frame/frame.md index 1874e9eb3..876473dc1 100644 --- a/apps/tests/frame.md +++ b/apps/tests/ui/frame/frame.md @@ -2,6 +2,7 @@ nav-title: "frame How-To" title: "frame" description: "Examples for using frame" +previous_url: /ApiReference/ui/frame/HOW-TO --- # Frame To perform navigation, you will need a reference to the topmost frame of the application. diff --git a/apps/tests/gestures-tests.ts b/apps/tests/ui/gestures/gestures-tests.ts similarity index 100% rename from apps/tests/gestures-tests.ts rename to apps/tests/ui/gestures/gestures-tests.ts diff --git a/apps/tests/gestures.md b/apps/tests/ui/gestures/gestures.md similarity index 96% rename from apps/tests/gestures.md rename to apps/tests/ui/gestures/gestures.md index 1a9296b40..25a59e642 100644 --- a/apps/tests/gestures.md +++ b/apps/tests/ui/gestures/gestures.md @@ -2,6 +2,7 @@ nav-title: "gestures How-To" title: "gestures" description: "Examples for using gestures" +previous_url: /ApiReference/ui/gestures/HOW-TO --- # Gestures Detecting user gestures requires the "ui/gestures" module. diff --git a/apps/tests/ui/html-view/htm-view.md b/apps/tests/ui/html-view/htm-view.md index 5572a8c1f..06e3f6493 100644 --- a/apps/tests/ui/html-view/htm-view.md +++ b/apps/tests/ui/html-view/htm-view.md @@ -2,6 +2,7 @@ nav-title: "HtmlView How-To" title: "html-view" description: "Examples for using HtmlView" +previous_url: /ApiReference/ui/html-view/HOW-TO --- # HtmlView Using a HtmlView requires the html-view module. diff --git a/apps/tests/ui/image-cache/image-cache.md b/apps/tests/ui/image-cache/image-cache.md index 11e634936..9f2141aa9 100644 --- a/apps/tests/ui/image-cache/image-cache.md +++ b/apps/tests/ui/image-cache/image-cache.md @@ -2,6 +2,7 @@ nav-title: "image-cache How-To" title: "image-cache" description: "Examples for using image-cache" +previous_url: /ApiReference/ui/image-cache/HOW-TO --- # ImageCache Using the ImageCache requires the "ui/image-cache" module. diff --git a/apps/tests/ui/image/image.md b/apps/tests/ui/image/image.md index cd004bc9a..6cf3f157e 100644 --- a/apps/tests/ui/image/image.md +++ b/apps/tests/ui/image/image.md @@ -2,6 +2,7 @@ nav-title: "Image How-To" title: "image" description: "Examples for using Image" +previous_url: /ApiReference/ui/image/HOW-TO --- # Image Using an image requires the Image module to be loaded. diff --git a/apps/tests/ui/label/label.md b/apps/tests/ui/label/label.md index d37bc8f99..2847a94ff 100644 --- a/apps/tests/ui/label/label.md +++ b/apps/tests/ui/label/label.md @@ -2,6 +2,7 @@ nav-title: "Label How-To" title: "label" description: "Examples for using Label" +previous_url: /ApiReference/ui/label/HOW-TO --- # Label Using a label requires the Label module. diff --git a/apps/tests/ui/layouts/absolute-layout.md b/apps/tests/ui/layouts/absolute-layout.md index e78c557d7..86d0cf78e 100644 --- a/apps/tests/ui/layouts/absolute-layout.md +++ b/apps/tests/ui/layouts/absolute-layout.md @@ -2,6 +2,7 @@ nav-title: "absolute-layout How-To" title: "absolute-layoyt" description: "Examples for using absolute-layout" +previous_url: /ApiReference/ui/layouts/absolute-layout/HOW-TO --- # AbsoluteLayout Using a AbsoluteLayout requires the AbsoluteLayout module. diff --git a/apps/tests/ui/layouts/dock-layout.md b/apps/tests/ui/layouts/dock-layout.md index 95ceee8a1..03d85ff80 100644 --- a/apps/tests/ui/layouts/dock-layout.md +++ b/apps/tests/ui/layouts/dock-layout.md @@ -2,6 +2,7 @@ nav-title: "dock-layout How-To" title: "dock-layout" description: "Examples for using dock-layout" +previous_url: /ApiReference/ui/layouts/dock-layout/HOW-TO --- # DockLayout Using a DockLayout requires the DockLayout module. diff --git a/apps/tests/ui/layouts/grid-layout.md b/apps/tests/ui/layouts/grid-layout.md index 90b55863a..0e8691847 100644 --- a/apps/tests/ui/layouts/grid-layout.md +++ b/apps/tests/ui/layouts/grid-layout.md @@ -2,6 +2,7 @@ nav-title: "grid-layout How-To" title: "grid-layout" description: "Examples for using grid-layout" +previous_url: /ApiReference/ui/layouts/grid-layout/HOW-TO --- ## GridLayout sample ### Creating Grid Layout via code. diff --git a/apps/tests/ui/layouts/stack-layout.md b/apps/tests/ui/layouts/stack-layout.md index 522ff65d9..922e1e079 100644 --- a/apps/tests/ui/layouts/stack-layout.md +++ b/apps/tests/ui/layouts/stack-layout.md @@ -2,6 +2,7 @@ nav-title: "stack-layout How-To" title: "stack-layout" description: "Examples for using stack-layout" +previous_url: /ApiReference/ui/layouts/stack-layout/HOW-TO --- ### import StackLayout and Button classes var StackLayout = require("ui/layouts/stack-layout").StackLayout; diff --git a/apps/tests/ui/layouts/wrap-layout.md b/apps/tests/ui/layouts/wrap-layout.md index c43fb2921..335fe0042 100644 --- a/apps/tests/ui/layouts/wrap-layout.md +++ b/apps/tests/ui/layouts/wrap-layout.md @@ -2,6 +2,7 @@ nav-title: "WrapLayout How-To" title: "wrap-layout" description: "Examples for using WrapLayout" +previous_url: /ApiReference/ui/layouts/wrap-layout/HOW-TO --- # WrapLayout Using a WrapLayout requires the WrapLayout module. diff --git a/apps/tests/ui/list-picker/list-picker.md b/apps/tests/ui/list-picker/list-picker.md index d4c12df02..ec39791c2 100644 --- a/apps/tests/ui/list-picker/list-picker.md +++ b/apps/tests/ui/list-picker/list-picker.md @@ -2,6 +2,7 @@ nav-title: "ListPicker How-To" title: "list-picker" description: "Examples for using ListPicker" +previous_url: /ApiReference/ui/list-picker/HOW-TO --- # ListPicker Using a ListPicker requires the "ui/list-picker" module. diff --git a/apps/tests/ui/list-view/list-view.md b/apps/tests/ui/list-view/list-view.md index a4e4b3b8b..d6acbb1d7 100644 --- a/apps/tests/ui/list-view/list-view.md +++ b/apps/tests/ui/list-view/list-view.md @@ -2,6 +2,7 @@ nav-title: "list-view How-To" title: "list-view" description: "Examples for using list-view" +previous_url: /ApiReference/ui/list-view/HOW-TO --- # ListView Using a ListView requires the ListView module. diff --git a/apps/tests/ui/page/page.md b/apps/tests/ui/page/page.md index e34e13ba6..fcfda799a 100644 --- a/apps/tests/ui/page/page.md +++ b/apps/tests/ui/page/page.md @@ -2,6 +2,7 @@ nav-title: "Page How-To" title: "page" description: "Examples for using Page" +previous_url: /ApiReference/ui/page/HOW-TO --- # Page Using a page requires the Page module. diff --git a/apps/tests/ui/placeholder/placeholder.md b/apps/tests/ui/placeholder/placeholder.md index 7fc45811a..7091e21d1 100644 --- a/apps/tests/ui/placeholder/placeholder.md +++ b/apps/tests/ui/placeholder/placeholder.md @@ -2,6 +2,7 @@ nav-title: "placeholder How-To" title: "placeholder" description: "Examples for using placeholder" +previous_url: /ApiReference/ui/placeholder/HOW-TO --- # Placeholder Using the placeholder requires the Placeholder module. diff --git a/apps/tests/ui/progress/progress.md b/apps/tests/ui/progress/progress.md index c0331ecb5..430943dc0 100644 --- a/apps/tests/ui/progress/progress.md +++ b/apps/tests/ui/progress/progress.md @@ -2,6 +2,7 @@ nav-title: "progress How-To" title: "progress" description: "Examples for using progress" +previous_url: /ApiReference/ui/progress/HOW-TO --- # Progress Using the progress view requires the Progress module. diff --git a/apps/tests/ui/repeater/repeater.md b/apps/tests/ui/repeater/repeater.md index 326a3ae71..e883537ab 100644 --- a/apps/tests/ui/repeater/repeater.md +++ b/apps/tests/ui/repeater/repeater.md @@ -2,6 +2,7 @@ nav-title: "repeater How-To" title: "repeater" description: "Examples for using repeater" +previous_url: /ApiReference/ui/repeater/HOW-TO --- # Repeater Using a Repeater requires the repeater module. diff --git a/apps/tests/ui/scroll-view/scroll-view.md b/apps/tests/ui/scroll-view/scroll-view.md index bf2132dc8..4c3028b5f 100644 --- a/apps/tests/ui/scroll-view/scroll-view.md +++ b/apps/tests/ui/scroll-view/scroll-view.md @@ -2,6 +2,7 @@ nav-title: "scroll-view How-To" title: "scroll-view" description: "Examples for using scroll-view" +previous_url: /ApiReference/ui/scroll-view/HOW-TO --- # ScrollView Using a ScrollView requires the ScrollView module. diff --git a/apps/tests/ui/search-bar/search-bar.md b/apps/tests/ui/search-bar/search-bar.md index daa2e65c7..834b81341 100644 --- a/apps/tests/ui/search-bar/search-bar.md +++ b/apps/tests/ui/search-bar/search-bar.md @@ -2,6 +2,7 @@ nav-title: "search-bar How-To" title: "search-bar" description: "Examples for using search-bar" +previous_url: /ApiReference/ui/search-bar/HOW-TO --- # SearchBar Using the SearchBar requires the "ui/search-bar" module. diff --git a/apps/tests/ui/segmented-bar/segmented-bar.md b/apps/tests/ui/segmented-bar/segmented-bar.md index a4cb36ce1..f1435a449 100644 --- a/apps/tests/ui/segmented-bar/segmented-bar.md +++ b/apps/tests/ui/segmented-bar/segmented-bar.md @@ -2,6 +2,7 @@ nav-title: "SegmentedBar How-To" title: "segmented-bar" description: "Examples for using SegmentedBar" +previous_url: /ApiReference/ui/segmented-bar/HOW-TO --- # SegmentedBar Using a SegmentedBar requires the "ui/segmented-bar" module. diff --git a/apps/tests/ui/slider/slider.md b/apps/tests/ui/slider/slider.md index dbfdeb71e..afd428c59 100644 --- a/apps/tests/ui/slider/slider.md +++ b/apps/tests/ui/slider/slider.md @@ -2,6 +2,7 @@ nav-title: "slider How-To" title: "slider" description: "Examples for using slider" +previous_url: /ApiReference/ui/slider/HOW-TO --- # Slider Using a slider requires the Slider module. diff --git a/apps/tests/ui/style/style-properties-tests.ts b/apps/tests/ui/styling/style-properties-tests.ts similarity index 100% rename from apps/tests/ui/style/style-properties-tests.ts rename to apps/tests/ui/styling/style-properties-tests.ts diff --git a/apps/tests/ui/style/style-tests.ts b/apps/tests/ui/styling/style-tests.ts similarity index 99% rename from apps/tests/ui/style/style-tests.ts rename to apps/tests/ui/styling/style-tests.ts index c3027bf23..71ae1f187 100644 --- a/apps/tests/ui/style/style-tests.ts +++ b/apps/tests/ui/styling/style-tests.ts @@ -683,7 +683,7 @@ export function test_CSS_isAppliedOnPage_From_Import() { helper.buildUIAndRunTest(testButton, function (views: Array) { var page: pageModule.Page = views[1]; - page.css = "@import url('~/ui/style/test.css');"; + page.css = "@import url('~/ui/styling/test.css');"; helper.assertViewBackgroundColor(page, "#FF0000"); }); } @@ -694,7 +694,7 @@ export function test_CSS_isAppliedOnPage_From_Import_Without_Url() { helper.buildUIAndRunTest(testButton, function (views: Array) { var page: pageModule.Page = views[1]; - page.css = "@import '~/ui/style/test.css';"; + page.css = "@import '~/ui/styling/test.css';"; helper.assertViewBackgroundColor(page, "#FF0000"); }); } @@ -705,7 +705,7 @@ export function test_CSS_isAppliedOnPage_From_addCssFile() { helper.buildUIAndRunTest(testButton, function (views: Array) { var page: pageModule.Page = views[1]; - page.addCssFile("~/ui/style/test.css"); + page.addCssFile("~/ui/styling/test.css"); helper.assertViewBackgroundColor(page, "#FF0000"); }); } diff --git a/apps/tests/ui/style/style.md b/apps/tests/ui/styling/styling.md similarity index 92% rename from apps/tests/ui/style/style.md rename to apps/tests/ui/styling/styling.md index 75cf88292..8d0d0ecd0 100644 --- a/apps/tests/ui/style/style.md +++ b/apps/tests/ui/styling/styling.md @@ -2,6 +2,7 @@ nav-title: "styling How-To" title: "styling" description: "Examples for using styling" +previous_url: ApiReference/ui/styling/HOW-TO --- # Styling ### Setting CSS to a page diff --git a/apps/tests/ui/style/test.css b/apps/tests/ui/styling/test.css similarity index 100% rename from apps/tests/ui/style/test.css rename to apps/tests/ui/styling/test.css diff --git a/apps/tests/ui/style/value-source-tests.ts b/apps/tests/ui/styling/value-source-tests.ts similarity index 100% rename from apps/tests/ui/style/value-source-tests.ts rename to apps/tests/ui/styling/value-source-tests.ts diff --git a/apps/tests/ui/style/visual-state-tests.ts b/apps/tests/ui/styling/visual-state-tests.ts similarity index 100% rename from apps/tests/ui/style/visual-state-tests.ts rename to apps/tests/ui/styling/visual-state-tests.ts diff --git a/apps/tests/ui/switch/switch.md b/apps/tests/ui/switch/switch.md index 99ffb06ed..70590e273 100644 --- a/apps/tests/ui/switch/switch.md +++ b/apps/tests/ui/switch/switch.md @@ -2,6 +2,7 @@ nav-title: "switch How-To" title: "switch" description: "Examples for using switch" +previous_url: /ApiReference/ui/switch/HOW-TO --- # Switch Using a switch requires the Switch module. diff --git a/apps/tests/ui/tab-view/tab-view.md b/apps/tests/ui/tab-view/tab-view.md index 76ea57a34..419e63a2b 100644 --- a/apps/tests/ui/tab-view/tab-view.md +++ b/apps/tests/ui/tab-view/tab-view.md @@ -2,6 +2,7 @@ nav-title: "TabView How-To" title: "tab-view" description: "Examples for using TabView" +previous_url: /ApiReference/ui/tab-view/HOW-TO --- # TabView ### Declaring the TabView in xml. diff --git a/apps/tests/ui/text-field/text-field.md b/apps/tests/ui/text-field/text-field.md index 8f72ea3dd..7ff25b5c0 100644 --- a/apps/tests/ui/text-field/text-field.md +++ b/apps/tests/ui/text-field/text-field.md @@ -2,6 +2,7 @@ nav-title: "TextField How-To" title: "text-field" description: "Examples for using TextField" +previous_url: /ApiReference/ui/text-field/HOW-TO --- # TextField Using a TextField requires the text-field module. diff --git a/apps/tests/ui/text-view/text-view.md b/apps/tests/ui/text-view/text-view.md index 6186047ed..ad4079001 100644 --- a/apps/tests/ui/text-view/text-view.md +++ b/apps/tests/ui/text-view/text-view.md @@ -2,6 +2,7 @@ nav-title: "TextView How-To" title: "text-view" description: "Examples for using TextView" +previous_url: /ApiReference/ui/text-view/HOW-TO --- # TextView Using a TextView requires the text-view module. diff --git a/apps/tests/ui/time-picker/time-picker.md b/apps/tests/ui/time-picker/time-picker.md index ed9470f22..94bb7e797 100644 --- a/apps/tests/ui/time-picker/time-picker.md +++ b/apps/tests/ui/time-picker/time-picker.md @@ -2,6 +2,7 @@ nav-title: "TimePicker How-To" title: "time-picker" description: "Examples for using TimePicker" +previous_url: /ApiReference/ui/time-picker/HOW-TO --- # TimePicker Using a TimePicker requires the "ui/time-picker" module. diff --git a/apps/tests/ui/web-view/web-view.md b/apps/tests/ui/web-view/web-view.md index 13e4a3476..aa59fb263 100644 --- a/apps/tests/ui/web-view/web-view.md +++ b/apps/tests/ui/web-view/web-view.md @@ -1,7 +1,8 @@ --- nav-title: "WebView How-To" -title: "webview" +title: "web-view" description: "Examples for using WebView" +previous_url: /ApiReference/ui/web-view/HOW-TO --- # WebView Using a WebView requires the web-view module. diff --git a/apps/tests/xml-parser-tests/xml-parser.md b/apps/tests/xml-parser-tests/xml-parser.md index 4493aa31a..920bb25c5 100644 --- a/apps/tests/xml-parser-tests/xml-parser.md +++ b/apps/tests/xml-parser-tests/xml-parser.md @@ -2,6 +2,7 @@ nav-title: "xml How-To" title: "xml" description: "Examples for using xml" +previous_url: /ApiReference/xml/HOW-TO --- # Xml module Using xml requires the Xml module. diff --git a/tsconfig.json b/tsconfig.json index 4836e0e8e..85a6841cc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -169,8 +169,8 @@ "apps/tests/file-system-access-tests/file-system-access-tests.ts", "apps/tests/file-system-tests.ts", "apps/tests/fps-meter-tests.ts", - "apps/tests/frame-tests.ts", - "apps/tests/gestures-tests.ts", + "apps/tests/ui/frame/frame-tests.ts", + "apps/tests/ui/gestures/gestures-tests.ts", "apps/tests/http-tests.ts", "apps/tests/image-source-tests.ts", "apps/tests/ui/layouts/absolute-layout-tests.ts", @@ -187,8 +187,8 @@ "apps/tests/navigation/custom-transition.ios.ts", "apps/tests/navigation/navigation-tests.ts", "apps/tests/navigation/transition-tests.ts", - "apps/tests/observable-array-tests.ts", - "apps/tests/observable-tests.ts", + "apps/tests/data/observable-array-tests.ts", + "apps/tests/data/observable-tests.ts", "apps/tests/pages/app.ts", "apps/tests/pages/background-test.ts", "apps/tests/pages/file-load-test.ts", @@ -286,10 +286,10 @@ "apps/tests/ui/segmented-bar/segmented-bar-tests-native.ios.ts", "apps/tests/ui/segmented-bar/segmented-bar-tests.ts", "apps/tests/ui/slider/slider-tests.ts", - "apps/tests/ui/style/style-properties-tests.ts", - "apps/tests/ui/style/style-tests.ts", - "apps/tests/ui/style/value-source-tests.ts", - "apps/tests/ui/style/visual-state-tests.ts", + "apps/tests/ui/styling/style-properties-tests.ts", + "apps/tests/ui/styling/style-tests.ts", + "apps/tests/ui/styling/value-source-tests.ts", + "apps/tests/ui/styling/visual-state-tests.ts", "apps/tests/ui/switch/switch-tests.ts", "apps/tests/ui/tab-view/tab-view-navigation-tests.ts", "apps/tests/ui/tab-view/tab-view-tests-native.android.ts", @@ -321,7 +321,7 @@ "apps/tests/ui/view/view-tests.d.ts", "apps/tests/ui/view/view-tests.ios.ts", "apps/tests/ui/web-view/web-view-tests.ts", - "apps/tests/virtual-array-tests.ts", + "apps/tests/data/virtual-array-tests.ts", "apps/tests/weak-event-listener-tests.ts", "apps/tests/xhr-tests.ts", "apps/tests/xml-declaration/app.ts",