From f15f283c74e74e0e9b6887769c6498c7ae57c0e0 Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Thu, 5 May 2016 10:43:35 +0300 Subject: [PATCH] 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",