diff --git a/tests/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml b/tests/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml
index ada77f92c..09ef064f1 100644
--- a/tests/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml
+++ b/tests/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml
@@ -5,4 +5,4 @@
-
-
\ No newline at end of file
+
diff --git a/tests/app/App_Resources/Android/src/main/res/values-v21/colors.xml b/tests/app/App_Resources/Android/src/main/res/values-v21/colors.xml
index a64641a9d..660cbac15 100644
--- a/tests/app/App_Resources/Android/src/main/res/values-v21/colors.xml
+++ b/tests/app/App_Resources/Android/src/main/res/values-v21/colors.xml
@@ -1,4 +1,4 @@
#3d5afe
-
\ No newline at end of file
+
diff --git a/tests/app/App_Resources/Android/src/main/res/values-v21/styles.xml b/tests/app/App_Resources/Android/src/main/res/values-v21/styles.xml
index dac8727c8..360581d9c 100644
--- a/tests/app/App_Resources/Android/src/main/res/values-v21/styles.xml
+++ b/tests/app/App_Resources/Android/src/main/res/values-v21/styles.xml
@@ -19,5 +19,5 @@
-
\ No newline at end of file
+
+
diff --git a/tests/app/App_Resources/Android/src/main/res/values/colors.xml b/tests/app/App_Resources/Android/src/main/res/values/colors.xml
index 74ad8829c..c749667fd 100644
--- a/tests/app/App_Resources/Android/src/main/res/values/colors.xml
+++ b/tests/app/App_Resources/Android/src/main/res/values/colors.xml
@@ -4,4 +4,4 @@
#757575
#33B5E5
#272734
-
\ No newline at end of file
+
diff --git a/tests/app/App_Resources/Android/src/main/res/values/styles.xml b/tests/app/App_Resources/Android/src/main/res/values/styles.xml
index c793e6d4c..bf8b73681 100644
--- a/tests/app/App_Resources/Android/src/main/res/values/styles.xml
+++ b/tests/app/App_Resources/Android/src/main/res/values/styles.xml
@@ -10,8 +10,8 @@
- @color/ns_accent
- @drawable/splash_screen
-
- - true
+
+ - true
- true
@@ -42,4 +42,4 @@
-
+
diff --git a/tests/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/tests/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
index 1a8b0e645..6d19987b3 100644
--- a/tests/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ b/tests/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -1,122 +1,122 @@
{
- "images" : [
+ "images": [
{
- "size" : "20x20",
- "idiom" : "iphone",
- "filename" : "icon-20@2x.png",
- "scale" : "2x"
+ "size": "20x20",
+ "idiom": "iphone",
+ "filename": "icon-20@2x.png",
+ "scale": "2x"
},
{
- "size" : "20x20",
- "idiom" : "iphone",
- "filename" : "icon-20@3x.png",
- "scale" : "3x"
+ "size": "20x20",
+ "idiom": "iphone",
+ "filename": "icon-20@3x.png",
+ "scale": "3x"
},
{
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "icon-29.png",
- "scale" : "1x"
+ "size": "29x29",
+ "idiom": "iphone",
+ "filename": "icon-29.png",
+ "scale": "1x"
},
{
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "icon-29@2x.png",
- "scale" : "2x"
+ "size": "29x29",
+ "idiom": "iphone",
+ "filename": "icon-29@2x.png",
+ "scale": "2x"
},
{
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "icon-29@3x.png",
- "scale" : "3x"
+ "size": "29x29",
+ "idiom": "iphone",
+ "filename": "icon-29@3x.png",
+ "scale": "3x"
},
{
- "size" : "40x40",
- "idiom" : "iphone",
- "filename" : "icon-40@2x.png",
- "scale" : "2x"
+ "size": "40x40",
+ "idiom": "iphone",
+ "filename": "icon-40@2x.png",
+ "scale": "2x"
},
{
- "size" : "40x40",
- "idiom" : "iphone",
- "filename" : "icon-40@3x.png",
- "scale" : "3x"
+ "size": "40x40",
+ "idiom": "iphone",
+ "filename": "icon-40@3x.png",
+ "scale": "3x"
},
{
- "size" : "60x60",
- "idiom" : "iphone",
- "filename" : "icon-60@2x.png",
- "scale" : "2x"
+ "size": "60x60",
+ "idiom": "iphone",
+ "filename": "icon-60@2x.png",
+ "scale": "2x"
},
{
- "size" : "60x60",
- "idiom" : "iphone",
- "filename" : "icon-60@3x.png",
- "scale" : "3x"
+ "size": "60x60",
+ "idiom": "iphone",
+ "filename": "icon-60@3x.png",
+ "scale": "3x"
},
{
- "size" : "20x20",
- "idiom" : "ipad",
- "filename" : "icon-20.png",
- "scale" : "1x"
+ "size": "20x20",
+ "idiom": "ipad",
+ "filename": "icon-20.png",
+ "scale": "1x"
},
{
- "size" : "20x20",
- "idiom" : "ipad",
- "filename" : "icon-20@2x.png",
- "scale" : "2x"
+ "size": "20x20",
+ "idiom": "ipad",
+ "filename": "icon-20@2x.png",
+ "scale": "2x"
},
{
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "icon-29.png",
- "scale" : "1x"
+ "size": "29x29",
+ "idiom": "ipad",
+ "filename": "icon-29.png",
+ "scale": "1x"
},
{
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "icon-29@2x.png",
- "scale" : "2x"
+ "size": "29x29",
+ "idiom": "ipad",
+ "filename": "icon-29@2x.png",
+ "scale": "2x"
},
{
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "icon-40.png",
- "scale" : "1x"
+ "size": "40x40",
+ "idiom": "ipad",
+ "filename": "icon-40.png",
+ "scale": "1x"
},
{
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "icon-40@2x.png",
- "scale" : "2x"
+ "size": "40x40",
+ "idiom": "ipad",
+ "filename": "icon-40@2x.png",
+ "scale": "2x"
},
{
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "icon-76.png",
- "scale" : "1x"
+ "size": "76x76",
+ "idiom": "ipad",
+ "filename": "icon-76.png",
+ "scale": "1x"
},
{
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "icon-76@2x.png",
- "scale" : "2x"
+ "size": "76x76",
+ "idiom": "ipad",
+ "filename": "icon-76@2x.png",
+ "scale": "2x"
},
{
- "size" : "83.5x83.5",
- "idiom" : "ipad",
- "filename" : "icon-83.5@2x.png",
- "scale" : "2x"
+ "size": "83.5x83.5",
+ "idiom": "ipad",
+ "filename": "icon-83.5@2x.png",
+ "scale": "2x"
},
{
- "size" : "1024x1024",
- "idiom" : "ios-marketing",
- "filename" : "icon-1024.png",
- "scale" : "1x"
+ "size": "1024x1024",
+ "idiom": "ios-marketing",
+ "filename": "icon-1024.png",
+ "scale": "1x"
}
],
- "info" : {
- "version" : 1,
- "author" : "xcode"
+ "info": {
+ "version": 1,
+ "author": "xcode"
}
-}
\ No newline at end of file
+}
diff --git a/tests/app/App_Resources/iOS/Assets.xcassets/Contents.json b/tests/app/App_Resources/iOS/Assets.xcassets/Contents.json
index da4a164c9..97a8662eb 100644
--- a/tests/app/App_Resources/iOS/Assets.xcassets/Contents.json
+++ b/tests/app/App_Resources/iOS/Assets.xcassets/Contents.json
@@ -1,6 +1,6 @@
{
- "info" : {
- "version" : 1,
- "author" : "xcode"
+ "info": {
+ "version": 1,
+ "author": "xcode"
}
-}
\ No newline at end of file
+}
diff --git a/tests/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json b/tests/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json
index bb3b4a5f6..9cf6229cf 100644
--- a/tests/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json
+++ b/tests/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json
@@ -1,212 +1,212 @@
{
- "images" : [
+ "images": [
{
- "extent" : "full-screen",
- "idiom" : "iphone",
- "subtype" : "2688h",
- "filename" : "Default-Portrait-XS-Max.png",
- "minimum-system-version" : "12.0",
- "orientation" : "portrait",
- "scale" : "3x"
+ "extent": "full-screen",
+ "idiom": "iphone",
+ "subtype": "2688h",
+ "filename": "Default-Portrait-XS-Max.png",
+ "minimum-system-version": "12.0",
+ "orientation": "portrait",
+ "scale": "3x"
},
{
- "extent" : "full-screen",
- "idiom" : "iphone",
- "subtype" : "2688h",
- "filename" : "Default-Landscape-XS-Max.png",
- "minimum-system-version" : "12.0",
- "orientation" : "landscape",
- "scale" : "3x"
+ "extent": "full-screen",
+ "idiom": "iphone",
+ "subtype": "2688h",
+ "filename": "Default-Landscape-XS-Max.png",
+ "minimum-system-version": "12.0",
+ "orientation": "landscape",
+ "scale": "3x"
},
{
- "extent" : "full-screen",
- "idiom" : "iphone",
- "subtype" : "1792h",
- "filename" : "Default-Portrait-XR.png",
- "minimum-system-version" : "12.0",
- "orientation" : "portrait",
- "scale" : "2x"
+ "extent": "full-screen",
+ "idiom": "iphone",
+ "subtype": "1792h",
+ "filename": "Default-Portrait-XR.png",
+ "minimum-system-version": "12.0",
+ "orientation": "portrait",
+ "scale": "2x"
},
{
- "extent" : "full-screen",
- "idiom" : "iphone",
- "subtype" : "1792h",
- "filename" : "Default-Landscape-XR.png",
- "minimum-system-version" : "12.0",
- "orientation" : "landscape",
- "scale" : "2x"
+ "extent": "full-screen",
+ "idiom": "iphone",
+ "subtype": "1792h",
+ "filename": "Default-Landscape-XR.png",
+ "minimum-system-version": "12.0",
+ "orientation": "landscape",
+ "scale": "2x"
},
{
- "extent" : "full-screen",
- "idiom" : "iphone",
- "subtype" : "2436h",
- "filename" : "Default-1125h.png",
- "minimum-system-version" : "11.0",
- "orientation" : "portrait",
- "scale" : "3x"
+ "extent": "full-screen",
+ "idiom": "iphone",
+ "subtype": "2436h",
+ "filename": "Default-1125h.png",
+ "minimum-system-version": "11.0",
+ "orientation": "portrait",
+ "scale": "3x"
},
{
- "extent" : "full-screen",
- "idiom" : "iphone",
- "subtype" : "2436h",
- "filename" : "Default-Landscape-X.png",
- "minimum-system-version" : "11.0",
- "orientation" : "landscape",
- "scale" : "3x"
+ "extent": "full-screen",
+ "idiom": "iphone",
+ "subtype": "2436h",
+ "filename": "Default-Landscape-X.png",
+ "minimum-system-version": "11.0",
+ "orientation": "landscape",
+ "scale": "3x"
},
{
- "extent" : "full-screen",
- "idiom" : "iphone",
- "subtype" : "736h",
- "filename" : "Default-736h@3x.png",
- "minimum-system-version" : "8.0",
- "orientation" : "portrait",
- "scale" : "3x"
+ "extent": "full-screen",
+ "idiom": "iphone",
+ "subtype": "736h",
+ "filename": "Default-736h@3x.png",
+ "minimum-system-version": "8.0",
+ "orientation": "portrait",
+ "scale": "3x"
},
{
- "extent" : "full-screen",
- "idiom" : "iphone",
- "subtype" : "736h",
- "filename" : "Default-Landscape@3x.png",
- "minimum-system-version" : "8.0",
- "orientation" : "landscape",
- "scale" : "3x"
+ "extent": "full-screen",
+ "idiom": "iphone",
+ "subtype": "736h",
+ "filename": "Default-Landscape@3x.png",
+ "minimum-system-version": "8.0",
+ "orientation": "landscape",
+ "scale": "3x"
},
{
- "extent" : "full-screen",
- "idiom" : "iphone",
- "subtype" : "667h",
- "filename" : "Default-667h@2x.png",
- "minimum-system-version" : "8.0",
- "orientation" : "portrait",
- "scale" : "2x"
+ "extent": "full-screen",
+ "idiom": "iphone",
+ "subtype": "667h",
+ "filename": "Default-667h@2x.png",
+ "minimum-system-version": "8.0",
+ "orientation": "portrait",
+ "scale": "2x"
},
{
- "orientation" : "portrait",
- "idiom" : "iphone",
- "filename" : "Default@2x.png",
- "extent" : "full-screen",
- "minimum-system-version" : "7.0",
- "scale" : "2x"
+ "orientation": "portrait",
+ "idiom": "iphone",
+ "filename": "Default@2x.png",
+ "extent": "full-screen",
+ "minimum-system-version": "7.0",
+ "scale": "2x"
},
{
- "extent" : "full-screen",
- "idiom" : "iphone",
- "subtype" : "retina4",
- "filename" : "Default-568h@2x.png",
- "minimum-system-version" : "7.0",
- "orientation" : "portrait",
- "scale" : "2x"
+ "extent": "full-screen",
+ "idiom": "iphone",
+ "subtype": "retina4",
+ "filename": "Default-568h@2x.png",
+ "minimum-system-version": "7.0",
+ "orientation": "portrait",
+ "scale": "2x"
},
{
- "orientation" : "portrait",
- "idiom" : "ipad",
- "filename" : "Default-Portrait.png",
- "extent" : "full-screen",
- "minimum-system-version" : "7.0",
- "scale" : "1x"
+ "orientation": "portrait",
+ "idiom": "ipad",
+ "filename": "Default-Portrait.png",
+ "extent": "full-screen",
+ "minimum-system-version": "7.0",
+ "scale": "1x"
},
{
- "orientation" : "landscape",
- "idiom" : "ipad",
- "filename" : "Default-Landscape.png",
- "extent" : "full-screen",
- "minimum-system-version" : "7.0",
- "scale" : "1x"
+ "orientation": "landscape",
+ "idiom": "ipad",
+ "filename": "Default-Landscape.png",
+ "extent": "full-screen",
+ "minimum-system-version": "7.0",
+ "scale": "1x"
},
{
- "orientation" : "portrait",
- "idiom" : "ipad",
- "filename" : "Default-Portrait@2x.png",
- "extent" : "full-screen",
- "minimum-system-version" : "7.0",
- "scale" : "2x"
+ "orientation": "portrait",
+ "idiom": "ipad",
+ "filename": "Default-Portrait@2x.png",
+ "extent": "full-screen",
+ "minimum-system-version": "7.0",
+ "scale": "2x"
},
{
- "orientation" : "landscape",
- "idiom" : "ipad",
- "filename" : "Default-Landscape@2x.png",
- "extent" : "full-screen",
- "minimum-system-version" : "7.0",
- "scale" : "2x"
+ "orientation": "landscape",
+ "idiom": "ipad",
+ "filename": "Default-Landscape@2x.png",
+ "extent": "full-screen",
+ "minimum-system-version": "7.0",
+ "scale": "2x"
},
{
- "orientation" : "portrait",
- "idiom" : "iphone",
- "filename" : "Default.png",
- "extent" : "full-screen",
- "scale" : "1x"
+ "orientation": "portrait",
+ "idiom": "iphone",
+ "filename": "Default.png",
+ "extent": "full-screen",
+ "scale": "1x"
},
{
- "orientation" : "portrait",
- "idiom" : "iphone",
- "filename" : "Default@2x.png",
- "extent" : "full-screen",
- "scale" : "2x"
+ "orientation": "portrait",
+ "idiom": "iphone",
+ "filename": "Default@2x.png",
+ "extent": "full-screen",
+ "scale": "2x"
},
{
- "orientation" : "portrait",
- "idiom" : "iphone",
- "filename" : "Default-568h@2x.png",
- "extent" : "full-screen",
- "subtype" : "retina4",
- "scale" : "2x"
+ "orientation": "portrait",
+ "idiom": "iphone",
+ "filename": "Default-568h@2x.png",
+ "extent": "full-screen",
+ "subtype": "retina4",
+ "scale": "2x"
},
{
- "orientation" : "portrait",
- "idiom" : "ipad",
- "extent" : "to-status-bar",
- "scale" : "1x"
+ "orientation": "portrait",
+ "idiom": "ipad",
+ "extent": "to-status-bar",
+ "scale": "1x"
},
{
- "orientation" : "portrait",
- "idiom" : "ipad",
- "filename" : "Default-Portrait.png",
- "extent" : "full-screen",
- "scale" : "1x"
+ "orientation": "portrait",
+ "idiom": "ipad",
+ "filename": "Default-Portrait.png",
+ "extent": "full-screen",
+ "scale": "1x"
},
{
- "orientation" : "landscape",
- "idiom" : "ipad",
- "extent" : "to-status-bar",
- "scale" : "1x"
+ "orientation": "landscape",
+ "idiom": "ipad",
+ "extent": "to-status-bar",
+ "scale": "1x"
},
{
- "orientation" : "landscape",
- "idiom" : "ipad",
- "filename" : "Default-Landscape.png",
- "extent" : "full-screen",
- "scale" : "1x"
+ "orientation": "landscape",
+ "idiom": "ipad",
+ "filename": "Default-Landscape.png",
+ "extent": "full-screen",
+ "scale": "1x"
},
{
- "orientation" : "portrait",
- "idiom" : "ipad",
- "extent" : "to-status-bar",
- "scale" : "2x"
+ "orientation": "portrait",
+ "idiom": "ipad",
+ "extent": "to-status-bar",
+ "scale": "2x"
},
{
- "orientation" : "portrait",
- "idiom" : "ipad",
- "filename" : "Default-Portrait@2x.png",
- "extent" : "full-screen",
- "scale" : "2x"
+ "orientation": "portrait",
+ "idiom": "ipad",
+ "filename": "Default-Portrait@2x.png",
+ "extent": "full-screen",
+ "scale": "2x"
},
{
- "orientation" : "landscape",
- "idiom" : "ipad",
- "extent" : "to-status-bar",
- "scale" : "2x"
+ "orientation": "landscape",
+ "idiom": "ipad",
+ "extent": "to-status-bar",
+ "scale": "2x"
},
{
- "orientation" : "landscape",
- "idiom" : "ipad",
- "filename" : "Default-Landscape@2x.png",
- "extent" : "full-screen",
- "scale" : "2x"
+ "orientation": "landscape",
+ "idiom": "ipad",
+ "filename": "Default-Landscape@2x.png",
+ "extent": "full-screen",
+ "scale": "2x"
}
],
- "info" : {
- "version" : 1,
- "author" : "xcode"
+ "info": {
+ "version": 1,
+ "author": "xcode"
}
-}
\ No newline at end of file
+}
diff --git a/tests/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json b/tests/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json
index ab5edd0ca..9180be41d 100644
--- a/tests/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json
+++ b/tests/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json
@@ -1,23 +1,23 @@
{
- "images" : [
+ "images": [
{
- "idiom" : "universal",
- "filename" : "LaunchScreen-AspectFill.png",
- "scale" : "1x"
+ "idiom": "universal",
+ "filename": "LaunchScreen-AspectFill.png",
+ "scale": "1x"
},
{
- "idiom" : "universal",
- "filename" : "LaunchScreen-AspectFill@2x.png",
- "scale" : "2x"
+ "idiom": "universal",
+ "filename": "LaunchScreen-AspectFill@2x.png",
+ "scale": "2x"
},
{
- "idiom" : "universal",
- "filename" : "LaunchScreen-AspectFill@3x.png",
- "scale" : "3x"
+ "idiom": "universal",
+ "filename": "LaunchScreen-AspectFill@3x.png",
+ "scale": "3x"
}
],
- "info" : {
- "version" : 1,
- "author" : "xcode"
+ "info": {
+ "version": 1,
+ "author": "xcode"
}
-}
\ No newline at end of file
+}
diff --git a/tests/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json b/tests/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json
index 444d7152d..7a03e93a6 100644
--- a/tests/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json
+++ b/tests/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json
@@ -1,23 +1,23 @@
{
- "images" : [
+ "images": [
{
- "idiom" : "universal",
- "filename" : "LaunchScreen-Center.png",
- "scale" : "1x"
+ "idiom": "universal",
+ "filename": "LaunchScreen-Center.png",
+ "scale": "1x"
},
{
- "idiom" : "universal",
- "filename" : "LaunchScreen-Center@2x.png",
- "scale" : "2x"
+ "idiom": "universal",
+ "filename": "LaunchScreen-Center@2x.png",
+ "scale": "2x"
},
{
- "idiom" : "universal",
- "filename" : "LaunchScreen-Center@3x.png",
- "scale" : "3x"
+ "idiom": "universal",
+ "filename": "LaunchScreen-Center@3x.png",
+ "scale": "3x"
}
],
- "info" : {
- "version" : 1,
- "author" : "xcode"
+ "info": {
+ "version": 1,
+ "author": "xcode"
}
-}
\ No newline at end of file
+}
diff --git a/tests/app/App_Resources/iOS/build.xcconfig b/tests/app/App_Resources/iOS/build.xcconfig
index 9d738435d..296ca9b50 100644
--- a/tests/app/App_Resources/iOS/build.xcconfig
+++ b/tests/app/App_Resources/iOS/build.xcconfig
@@ -1,6 +1,6 @@
// You can add custom settings here
// for example you can uncomment the following line to force distribution code signing
-// CODE_SIGN_IDENTITY = iPhone Distribution
+// CODE_SIGN_IDENTITY = iPhone Distribution
// To build for device with XCode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
// DEVELOPMENT_TEAM = YOUR_TEAM_ID;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
diff --git a/tests/app/console/console-tests.ts b/tests/app/console/console-tests.ts
index 74465ed15..491973801 100644
--- a/tests/app/console/console-tests.ts
+++ b/tests/app/console/console-tests.ts
@@ -24,7 +24,7 @@ export var test_DummyTestForSnippetOnly2 = function () {
export var test_DummyTestForSnippetOnly3 = function () {
// >> console-dir
- var obj = {name: "John", age: 34};
+ var obj = { name: "John", age: 34 };
console.dir(obj);
// << console-dir
};
@@ -33,4 +33,4 @@ export var test_DummyTestForSnippetOnly5 = function () {
// >> console-trace
console.trace();
// << console-trace
-};
\ No newline at end of file
+};
diff --git a/tests/app/data/observable-array-tests.ts b/tests/app/data/observable-array-tests.ts
index 1c51e01da..38fdff924 100644
--- a/tests/app/data/observable-array-tests.ts
+++ b/tests/app/data/observable-array-tests.ts
@@ -114,7 +114,7 @@ export const test_ObservableArray_popShouldRemoveTheLastElement = function () {
// >> (hide)
const viewBase = new Label();
viewBase.set("testProperty", 0);
- viewBase.bind({sourceProperty: "length", targetProperty: "testProperty"}, array);
+ viewBase.bind({ sourceProperty: "length", targetProperty: "testProperty" }, array);
// << (hide)
const result = array.pop();
// << observable-array-join-pop
@@ -157,7 +157,7 @@ export const test_ObservableArray_pushShouldAppendNewElement = function () {
// >> (hide)
const viewBase = new Label();
viewBase.set("testProperty", 0);
- viewBase.bind({sourceProperty: "length", targetProperty: "testProperty"}, array);
+ viewBase.bind({ sourceProperty: "length", targetProperty: "testProperty" }, array);
// << (hide)
const result = array.push(4);
// << observable-array-push
@@ -196,7 +196,7 @@ export const test_ObservableArray_pushShouldAppendNewElements = function () {
// >> (hide)
const viewBase = new Label();
viewBase.set("testProperty", 0);
- viewBase.bind({sourceProperty: "length", targetProperty: "testProperty"}, array);
+ viewBase.bind({ sourceProperty: "length", targetProperty: "testProperty" }, array);
// << (hide)
const result = array.push(4, 5, 6);
// << observable-array-push-multiple
@@ -235,7 +235,7 @@ export const test_ObservableArray_pushShouldAppendNewElementsFromSourceArray = f
// >> (hide)
const viewBase = new Label();
viewBase.set("testProperty", 0);
- viewBase.bind({sourceProperty: "length", targetProperty: "testProperty"}, array);
+ viewBase.bind({ sourceProperty: "length", targetProperty: "testProperty" }, array);
// << (hide)
const result = array.push([4, 5, 6]);
// << observable-array-push-source
@@ -282,7 +282,7 @@ export const test_ObservableArray_shiftShouldRemoveTheFirstElement = function ()
// >> (hide)
const viewBase = new Label();
viewBase.set("testProperty", 0);
- viewBase.bind({sourceProperty: "length", targetProperty: "testProperty"}, array);
+ viewBase.bind({ sourceProperty: "length", targetProperty: "testProperty" }, array);
// << (hide)
const result = array.shift();
// << observable-array-shift
@@ -354,7 +354,7 @@ export const test_ObservableArray_spliceShouldRemoveSpecifiedNumberOfElementsSta
// >> (hide)
const viewBase = new Label();
viewBase.set("testProperty", 0);
- viewBase.bind({sourceProperty: "length", targetProperty: "testProperty"}, array);
+ viewBase.bind({ sourceProperty: "length", targetProperty: "testProperty" }, array);
// << (hide)
const result = array.splice(1, 2);
// << observable-array-splice
@@ -430,7 +430,7 @@ export const test_ObservableArray_unshiftShouldInsertNewElementsFromTheStart = f
// >> (hide)
const viewBase = new Label();
viewBase.set("testProperty", 0);
- viewBase.bind({sourceProperty: "length", targetProperty: "testProperty"}, array);
+ viewBase.bind({ sourceProperty: "length", targetProperty: "testProperty" }, array);
// << (hide)
const result = array.unshift(4, 5);
// << observable-array-unshift
@@ -647,7 +647,7 @@ export const test_reduce_with_initial_value = function () {
};
export const test_reduce_with_zero_as_initial_value = function () {
- const sa = [{prop: 1}, {prop: 2}, {prop: 3}];
+ const sa = [{ prop: 1 }, { prop: 2 }, { prop: 3 }];
let array: ObservableArray = new ObservableArray(sa);
const result = array.reduce((a, b) => a + b.prop, 0);
TKUnit.assertEqual(result, 6, "ObservableArray reduce function broken when Initial Value is zero.");
@@ -672,7 +672,7 @@ export const test_reduceRight_with_initial_value = function () {
};
export const test_reduceRight_with_zero_as_initial_value = function () {
- const sa = [{prop: 1}, {prop: 2}, {prop: 3}];
+ const sa = [{ prop: 1 }, { prop: 2 }, { prop: 3 }];
let array: ObservableArray = new ObservableArray(sa);
const result = array.reduceRight((a, b) => a + b.prop, 0);
TKUnit.assertEqual(result, 6, "ObservableArray reduceRight function broken when Initial Value is zero.");
diff --git a/tests/app/data/observable-array.md b/tests/app/data/observable-array.md
index 1c0377bb8..c78aa969f 100644
--- a/tests/app/data/observable-array.md
+++ b/tests/app/data/observable-array.md
@@ -71,25 +71,25 @@ previous_url: /ApiReference/data/observable-array/HOW-TO
### Handle "change" event to know more info about the change after calling shift() method.
{%snippet observable-array-shift-change%}
-### Use slice() method to return array with all ObservableArray elements.
+### Use slice() method to return array with all ObservableArray elements.
{%snippet observable-array-slice%}
-### Use slice(star, end) method to return section of the array.
+### Use slice(star, end) method to return section of the array.
{%snippet observable-array-slice-args%}
-### Use sort() method to sort the array.
+### Use sort() method to sort the array.
{%snippet observable-array-sort%}
-### Use sort(compareFunction) method to sort the array with your own comparing logic.
+### Use sort(compareFunction) method to sort the array with your own comparing logic.
{%snippet observable-array-sort-comparer%}
-### Use splice(start, deleteCount) method to delete elements in the array.
+### Use splice(start, deleteCount) method to delete elements in the array.
{%snippet observable-array-splice%}
### Handle "change" event to know more info about the change after calling splice(start, deleteCount) method.
{%snippet observable-array-splice-change%}
-### Use splice(start, deleteCount, ...arguments) method to remove and insert elements in the array.
+### Use splice(start, deleteCount, ...arguments) method to remove and insert elements in the array.
{%snippet observable-array-splice-args%}
### Handle "change" event to know more info about the change after calling splice(start, deleteCount, ...arguments) method.
diff --git a/tests/app/data/observable-tests.ts b/tests/app/data/observable-tests.ts
index bd70c2a2d..291bbe996 100644
--- a/tests/app/data/observable-tests.ts
+++ b/tests/app/data/observable-tests.ts
@@ -563,7 +563,7 @@ export function test_get_set_on_observables_fromObject_without_property_in_json(
export function test_get_set_on_observables_fromObject_with_property_in_json() {
const array = new ObservableArray();
- const vm = fromObject({ p: null});
+ const vm = fromObject({ p: null });
vm.set("p", array);
const value1 = vm.get("p");
const value2 = (vm).p;
diff --git a/tests/app/data/virtual-array.md b/tests/app/data/virtual-array.md
index a47909149..3c618351f 100644
--- a/tests/app/data/virtual-array.md
+++ b/tests/app/data/virtual-array.md
@@ -9,8 +9,8 @@ previous_url: /ApiReference/data/virtual-array/HOW-TO
{%snippet virtual-array-require%}
### Handle "itemsLoading" event to load items on demand using load() method.
-Use "length" property set via VirtualArray constructor to specify total number of items,
-"loadSize" to specify number of items to be requested in a single request,
+Use "length" property set via VirtualArray constructor to specify total number of items,
+"loadSize" to specify number of items to be requested in a single request,
"itemsLoading" event to handle items request and "load()" method to copy items into the array.
All already loaded items are cached in -memory and when "getItem()" method is called
the array will raise "itemsLoading" event for still not loaded items.
diff --git a/tests/app/file-system-access-tests/xml.expected b/tests/app/file-system-access-tests/xml.expected
index 2f0db1e67..0dd746a0d 100644
--- a/tests/app/file-system-access-tests/xml.expected
+++ b/tests/app/file-system-access-tests/xml.expected
@@ -1 +1 @@
-{"eventType":"StartElement","elementName":"DocumentElement","attributes":{"param":"value"}}{"eventType":"StartElement","elementName":"First.Element","attributes":{"some.attr":"some.value"}}{"eventType":"Text","data":"\n ¶ Some Text ®\n "}{"eventType":"EndElement","elementName":"First.Element"}{"eventType":"StartElement","elementName":"SecondElement","attributes":{"param2":"something"}}{"eventType":"Text","data":"\n Pre-Text "}{"eventType":"StartElement","elementName":"Inline"}{"eventType":"Text","data":"Inlined text"}{"eventType":"EndElement","elementName":"Inline"}{"eventType":"Text","data":" Post-text.\n "}{"eventType":"EndElement","elementName":"SecondElement"}{"eventType":"StartElement","elementName":"entities"}{"eventType":"Text","data":"Xml tags begin with \"<\" and end with \">\" Ampersand is & and apostrophe is '"}{"eventType":"EndElement","elementName":"entities"}{"eventType":"StartElement","elementName":"script"}{"eventType":"CDATA","data":"\nfunction sum(a,b)\n{\n return a+b;\n}\n"}{"eventType":"EndElement","elementName":"script"}{"eventType":"Comment","data":"\n Hello,\n I am a multi-line XML comment.\n"}{"eventType":"EndElement","elementName":"DocumentElement"}
\ No newline at end of file
+{"eventType":"StartElement","elementName":"DocumentElement","attributes":{"param":"value"}}{"eventType":"StartElement","elementName":"First.Element","attributes":{"some.attr":"some.value"}}{"eventType":"Text","data":"\n ¶ Some Text ®\n "}{"eventType":"EndElement","elementName":"First.Element"}{"eventType":"StartElement","elementName":"SecondElement","attributes":{"param2":"something"}}{"eventType":"Text","data":"\n Pre-Text "}{"eventType":"StartElement","elementName":"Inline"}{"eventType":"Text","data":"Inlined text"}{"eventType":"EndElement","elementName":"Inline"}{"eventType":"Text","data":" Post-text.\n "}{"eventType":"EndElement","elementName":"SecondElement"}{"eventType":"StartElement","elementName":"entities"}{"eventType":"Text","data":"Xml tags begin with \"<\" and end with \">\" Ampersand is & and apostrophe is '"}{"eventType":"EndElement","elementName":"entities"}{"eventType":"StartElement","elementName":"script"}{"eventType":"CDATA","data":"\nfunction sum(a,b)\n{\n return a+b;\n}\n"}{"eventType":"EndElement","elementName":"script"}{"eventType":"Comment","data":"\n Hello,\n I am a multi-line XML comment.\n"}{"eventType":"EndElement","elementName":"DocumentElement"}
diff --git a/tests/app/file-system/file-system-tests.ts b/tests/app/file-system/file-system-tests.ts
index 7815afe58..2f19fcd82 100644
--- a/tests/app/file-system/file-system-tests.ts
+++ b/tests/app/file-system/file-system-tests.ts
@@ -239,8 +239,8 @@ function _testIOSSpecificKnownFolder(knownFolderName: string) {
}
else {
TKUnit.assertThrows(testFunc,
- `Trying to retrieve the ${knownFolderName} known folder on a platform different from iOS should throw!`,
- `The "${knownFolderName}" known folder is available on iOS only!`);
+ `Trying to retrieve the ${knownFolderName} known folder on a platform different from iOS should throw!`,
+ `The "${knownFolderName}" known folder is available on iOS only!`);
}
}
@@ -574,7 +574,7 @@ export function test_FileSize(done) {
return file.remove();
}).then(() => done())
- .catch(done);
+ .catch(done);
}
export function test_UnlockAfterWrite(done) {
@@ -586,17 +586,17 @@ export function test_UnlockAfterWrite(done) {
return file.remove();
}).then(() => done())
- .catch(done);
+ .catch(done);
}
export function test_CreateParentOnNewFile(done) {
var documentsFolderName = fs.knownFolders.documents().path;
var tempFileName = fs.path.join(documentsFolderName, "folder1", "folder2", "Test_File_Create_Parent.txt");
var file = fs.File.fromPath(tempFileName);
- file.writeText("Hello World!").then(() => {
+ file.writeText("Hello World!").then(() => {
return fs.knownFolders.documents().getFolder("folder1").remove();
}).then(() => done())
- .catch(done);
+ .catch(done);
}
export function test_FolderClear_RemovesEmptySubfolders(done) {
diff --git a/tests/app/globals/globals-tests.ts b/tests/app/globals/globals-tests.ts
index 48ba9d59d..994ad70e5 100644
--- a/tests/app/globals/globals-tests.ts
+++ b/tests/app/globals/globals-tests.ts
@@ -8,20 +8,20 @@ export function test_global_system_import() {
TKUnit.assert((global).System, "global.System not defined");
TKUnit.assert(typeof (global).System.import === "function", "global.System.import not a function");
-}
+}
export function test_global_zonedCallback() {
TKUnit.assert(typeof zonedCallback === "function", "zonedCallback not defined");
TKUnit.assert(typeof global.zonedCallback === "function", "global.zonedCallback not a function");
-}
+}
export function test_global_moduleMerge() {
TKUnit.assert(typeof global.moduleMerge === "function", "global.moduleMerge not a function");
-}
+}
export function test_global_registerModule() {
TKUnit.assert(typeof global.registerModule === "function", "global.registerModule not a function");
-}
+}
export function test_global_registerWebpackModules() {
TKUnit.assert(typeof global.registerWebpackModules === "function", "global.registerWebpackModules not a function");
diff --git a/tests/app/http/http-tests.ts b/tests/app/http/http-tests.ts
index 39ccc1b8b..4ea6bfdc8 100644
--- a/tests/app/http/http-tests.ts
+++ b/tests/app/http/http-tests.ts
@@ -128,7 +128,7 @@ export var test_getJSON_fail_when_result_is_not_JSONP = function (done) {
});
};
-export var test_gzip_request_explicit = function(done) {
+export var test_gzip_request_explicit = function (done) {
var result;
http.request({
@@ -136,7 +136,8 @@ export var test_gzip_request_explicit = function(done) {
method: "GET",
headers: {
"Accept-Encoding": "gzip"
- }}).then(function (r) {
+ }
+ }).then(function (r) {
result = r;
try {
TKUnit.assert(typeof (JSON.stringify(result)) === "string", "Result from gzipped stream should be valid JSON object!");
@@ -150,12 +151,13 @@ export var test_gzip_request_explicit = function(done) {
});
};
-export var test_gzip_request_implicit = function(done) {
+export var test_gzip_request_implicit = function (done) {
var result;
http.request({
url: "https://postman-echo.com/gzip",
- method: "GET"}).then(function (r) {
+ method: "GET"
+ }).then(function (r) {
result = r;
try {
TKUnit.assert(typeof (JSON.stringify(result)) === "string", "Result from gzipped stream should be valid JSON object!");
@@ -634,12 +636,12 @@ export var test_request_jsonAsContentSentAndReceivedProperly = function (done) {
};
declare var Worker: any;
-export var test_getString_WorksProperlyInWorker = function(done) {
+export var test_getString_WorksProperlyInWorker = function (done) {
let worker = new Worker("./http-string-worker");
- worker.onmessage = function(msg) {
+ worker.onmessage = function (msg) {
done();
};
- worker.onerror = function(e) {
+ worker.onerror = function (e) {
done(e);
};
};
diff --git a/tests/app/image-source/image-source-snippet.ts b/tests/app/image-source/image-source-snippet.ts
index b8ab9cea2..c341aad70 100644
--- a/tests/app/image-source/image-source-snippet.ts
+++ b/tests/app/image-source/image-source-snippet.ts
@@ -14,4 +14,4 @@ export function imageSourceFromAsset(imageAsset) {
}
});
}
-// << imagesource-from-imageasset-save-to
\ No newline at end of file
+// << imagesource-from-imageasset-save-to
diff --git a/tests/app/image-source/image-source.md b/tests/app/image-source/image-source.md
index 04d3a6922..4b7c746e4 100644
--- a/tests/app/image-source/image-source.md
+++ b/tests/app/image-source/image-source.md
@@ -53,4 +53,4 @@ The supported formats are `png`, `jpeg`, and `jpg`. The quality parameter is opt
### Creating PNG image file from base64 string
The method `fromBase64(source: string): Promise` loads this instance from the specified base64 encoded string asynchronously.
-{%snippet imagesource-from-base-string%}
\ No newline at end of file
+{%snippet imagesource-from-base-string%}
diff --git a/tests/app/livesync/app-new-page.css b/tests/app/livesync/app-new-page.css
index 5ad9ea7d5..30df29ef4 100644
--- a/tests/app/livesync/app-new-page.css
+++ b/tests/app/livesync/app-new-page.css
@@ -1,3 +1,4 @@
-Button, Label {
+Button,
+Label {
color: green;
-}
\ No newline at end of file
+}
diff --git a/tests/app/livesync/app-new-scss-page.scss b/tests/app/livesync/app-new-scss-page.scss
index 5ad9ea7d5..30df29ef4 100644
--- a/tests/app/livesync/app-new-scss-page.scss
+++ b/tests/app/livesync/app-new-scss-page.scss
@@ -1,3 +1,4 @@
-Button, Label {
+Button,
+Label {
color: green;
-}
\ No newline at end of file
+}
diff --git a/tests/app/livesync/application-page.css b/tests/app/livesync/application-page.css
index 89fff3b12..b3d05f604 100644
--- a/tests/app/livesync/application-page.css
+++ b/tests/app/livesync/application-page.css
@@ -1,3 +1,4 @@
-Button, Label {
+Button,
+Label {
color: black;
-}
\ No newline at end of file
+}
diff --git a/tests/app/livesync/button-css-page.css b/tests/app/livesync/button-css-page.css
index 1f811bb24..68d098e0c 100644
--- a/tests/app/livesync/button-css-page.css
+++ b/tests/app/livesync/button-css-page.css
@@ -1,3 +1,3 @@
Button {
color: green;
-}
\ No newline at end of file
+}
diff --git a/tests/app/livesync/button-scss-page.scss b/tests/app/livesync/button-scss-page.scss
index 1f811bb24..68d098e0c 100644
--- a/tests/app/livesync/button-scss-page.scss
+++ b/tests/app/livesync/button-scss-page.scss
@@ -1,3 +1,3 @@
Button {
color: green;
-}
\ No newline at end of file
+}
diff --git a/tests/app/livesync/livesync-modal-view-page.xml b/tests/app/livesync/livesync-modal-view-page.xml
index 8b5ae3cd1..62eecdf17 100644
--- a/tests/app/livesync/livesync-modal-view-page.xml
+++ b/tests/app/livesync/livesync-modal-view-page.xml
@@ -1,3 +1,3 @@
-
+
diff --git a/tests/app/name-resolvers-tests/files/other.xml b/tests/app/name-resolvers-tests/files/other.xml
index 162275934..07baef738 100644
--- a/tests/app/name-resolvers-tests/files/other.xml
+++ b/tests/app/name-resolvers-tests/files/other.xml
@@ -1 +1 @@
-other.xml
\ No newline at end of file
+other.xml
diff --git a/tests/app/name-resolvers-tests/files/test.land.xml b/tests/app/name-resolvers-tests/files/test.land.xml
index 07270d972..0f2b16d84 100644
--- a/tests/app/name-resolvers-tests/files/test.land.xml
+++ b/tests/app/name-resolvers-tests/files/test.land.xml
@@ -1 +1 @@
-test.minWH300.xml
\ No newline at end of file
+test.minWH300.xml
diff --git a/tests/app/name-resolvers-tests/files/test.minWH600.xml b/tests/app/name-resolvers-tests/files/test.minWH600.xml
index e0c145e88..a4af10111 100644
--- a/tests/app/name-resolvers-tests/files/test.minWH600.xml
+++ b/tests/app/name-resolvers-tests/files/test.minWH600.xml
@@ -1 +1 @@
-test.monWH450.xml
\ No newline at end of file
+test.monWH450.xml
diff --git a/tests/app/name-resolvers-tests/files/test.xml b/tests/app/name-resolvers-tests/files/test.xml
index 3d02faa9c..a6535f35d 100644
--- a/tests/app/name-resolvers-tests/files/test.xml
+++ b/tests/app/name-resolvers-tests/files/test.xml
@@ -1 +1 @@
-test.xml
\ No newline at end of file
+test.xml
diff --git a/tests/app/navigation/custom-transition.d.ts b/tests/app/navigation/custom-transition.d.ts
index 4b14ce81a..958994bdb 100644
--- a/tests/app/navigation/custom-transition.d.ts
+++ b/tests/app/navigation/custom-transition.d.ts
@@ -3,4 +3,4 @@ import { Transition } from "tns-core-modules/ui/transition";
export class CustomTransition extends Transition {
constructor();
constructor(duration: number, curve: any);
-}
\ No newline at end of file
+}
diff --git a/tests/app/pages/background-test.xml b/tests/app/pages/background-test.xml
index 5699dc180..06414eb24 100644
--- a/tests/app/pages/background-test.xml
+++ b/tests/app/pages/background-test.xml
@@ -34,4 +34,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/pages/fonts-test.xml b/tests/app/pages/fonts-test.xml
index 5d2b2cb39..d2b2bdff6 100644
--- a/tests/app/pages/fonts-test.xml
+++ b/tests/app/pages/fonts-test.xml
@@ -81,4 +81,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/pages/navigation/pageA.ts b/tests/app/pages/navigation/pageA.ts
index 079ed62a5..d0e770184 100644
--- a/tests/app/pages/navigation/pageA.ts
+++ b/tests/app/pages/navigation/pageA.ts
@@ -41,7 +41,7 @@ export function createPage() {
lv.height = 200;
lv.items = data;
lv.on(list.ListView.itemLoadingEvent, (args: list.ItemEventData) => {
- var btn = args.view;
+ var btn = args.view;
if (!btn) {
btn = new button.Button();
args.view = btn;
diff --git a/tests/app/pages/package.json b/tests/app/pages/package.json
index 780cb595f..711702985 100644
--- a/tests/app/pages/package.json
+++ b/tests/app/pages/package.json
@@ -1,2 +1,4 @@
-{ "name" : "testsapp",
- "main" : "app.js" }
+{
+ "name": "testsapp",
+ "main": "app.js"
+}
diff --git a/tests/app/pages/page14.xml b/tests/app/pages/page14.xml
index 45f44219d..686edb7a4 100644
--- a/tests/app/pages/page14.xml
+++ b/tests/app/pages/page14.xml
@@ -2,10 +2,10 @@
-
+
-
+
diff --git a/tests/app/pages/page17.xml b/tests/app/pages/page17.xml
index af6b5d26d..ec54ed2b4 100644
--- a/tests/app/pages/page17.xml
+++ b/tests/app/pages/page17.xml
@@ -1,6 +1,6 @@
-
+
-
\ No newline at end of file
+
diff --git a/tests/app/pages/page18.xml b/tests/app/pages/page18.xml
index e92ccc3a7..a73769fe4 100644
--- a/tests/app/pages/page18.xml
+++ b/tests/app/pages/page18.xml
@@ -18,4 +18,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/pages/page19.xml b/tests/app/pages/page19.xml
index b97ad13a0..de978f020 100644
--- a/tests/app/pages/page19.xml
+++ b/tests/app/pages/page19.xml
@@ -1,3 +1,3 @@
-
\ No newline at end of file
+
diff --git a/tests/app/pages/page20.xml b/tests/app/pages/page20.xml
index 61fc4624e..bf7cf10a4 100644
--- a/tests/app/pages/page20.xml
+++ b/tests/app/pages/page20.xml
@@ -2,4 +2,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/pages/page7.ts b/tests/app/pages/page7.ts
index d92f9254e..71c5f2373 100644
--- a/tests/app/pages/page7.ts
+++ b/tests/app/pages/page7.ts
@@ -18,41 +18,41 @@ export function createPage() {
btn.verticalAlignment = vAligns[(count++) % 4];
});
-//export function performanceTest() {
-// var testBtn = new buttons.Button();
-// var i = 0;
-// var tmp;
-// var start;
-// var end;
+ //export function performanceTest() {
+ // var testBtn = new buttons.Button();
+ // var i = 0;
+ // var tmp;
+ // var start;
+ // var end;
-// start = new Date().getTime();
-// for (i = 0; i < 1000000; i++) {
-// tmp = testBtn.verticalAlignment;
-// }
-// end = new Date().getTime();
-// console.log("GET from STYLE time: " + (end - start));
+ // start = new Date().getTime();
+ // for (i = 0; i < 1000000; i++) {
+ // tmp = testBtn.verticalAlignment;
+ // }
+ // end = new Date().getTime();
+ // console.log("GET from STYLE time: " + (end - start));
-// start = new Date().getTime();
-// for (i = 0; i < 1000000; i++) {
-// tmp = testBtn.horizontalAlignment;
-// }
-// end = new Date().getTime();
-// console.log("GET from LayoutInfo time: " + (end - start));
+ // start = new Date().getTime();
+ // for (i = 0; i < 1000000; i++) {
+ // tmp = testBtn.horizontalAlignment;
+ // }
+ // end = new Date().getTime();
+ // console.log("GET from LayoutInfo time: " + (end - start));
-// start = new Date().getTime();
-// for (i = 0; i < 1000000; i++) {
-// testBtn.verticalAlignment = vAligns[i % 4];
-// }
-// end = new Date().getTime();
-// console.log("SET to STYLE time: " + (end - start));
+ // start = new Date().getTime();
+ // for (i = 0; i < 1000000; i++) {
+ // testBtn.verticalAlignment = vAligns[i % 4];
+ // }
+ // end = new Date().getTime();
+ // console.log("SET to STYLE time: " + (end - start));
-// start = new Date().getTime();
-// for (i = 0; i < 1000000; i++) {
-// testBtn.horizontalAlignment = hAligns[i % 4];
-// }
-// end = new Date().getTime();
-// console.log("SET from LayoutInfo time: " + (end - start));
-// }
+ // start = new Date().getTime();
+ // for (i = 0; i < 1000000; i++) {
+ // testBtn.horizontalAlignment = hAligns[i % 4];
+ // }
+ // end = new Date().getTime();
+ // console.log("SET from LayoutInfo time: " + (end - start));
+ // }
page.content = btn;
diff --git a/tests/app/pages/performance-test/start.xml b/tests/app/pages/performance-test/start.xml
index c2facd58a..e7712c326 100644
--- a/tests/app/pages/performance-test/start.xml
+++ b/tests/app/pages/performance-test/start.xml
@@ -4,4 +4,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/pages/performance-test/test-big.xml b/tests/app/pages/performance-test/test-big.xml
index 9f0b0baf3..c5cad1da0 100644
--- a/tests/app/pages/performance-test/test-big.xml
+++ b/tests/app/pages/performance-test/test-big.xml
@@ -51,4 +51,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/pages/performance-test/test-small.xml b/tests/app/pages/performance-test/test-small.xml
index 7b58d0669..6e053a00c 100644
--- a/tests/app/pages/performance-test/test-small.xml
+++ b/tests/app/pages/performance-test/test-small.xml
@@ -9,4 +9,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/pages/tab-view.xml b/tests/app/pages/tab-view.xml
index 9a5306e93..d0c1296d3 100644
--- a/tests/app/pages/tab-view.xml
+++ b/tests/app/pages/tab-view.xml
@@ -26,4 +26,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/timer/timer-tests.ts b/tests/app/timer/timer-tests.ts
index 2c6f7997f..c0d9f125f 100644
--- a/tests/app/timer/timer-tests.ts
+++ b/tests/app/timer/timer-tests.ts
@@ -80,7 +80,7 @@ export function test_setTimeout_callbackCalledWithBooleanPeriod() {
// >> (hide)
completed = true;
// << (hide)
- // @ts-ignore
+ // @ts-ignore
}, false);
// << timer-set-false
diff --git a/tests/app/trace/trace-error-tests.ts b/tests/app/trace/trace-error-tests.ts
index cdf5e6741..48f9a8f33 100644
--- a/tests/app/trace/trace-error-tests.ts
+++ b/tests/app/trace/trace-error-tests.ts
@@ -61,7 +61,7 @@ export function test_trace_error_should_pass_errors() {
}
});
traceError(testError);
-
+
TKUnit.assert(called, "trace.error() should call handler;");
TKUnit.assertDeepEqual(actualError, testError);
}
diff --git a/tests/app/trace/trace-tests.ts b/tests/app/trace/trace-tests.ts
index 9b65ba8ef..2e71e9585 100644
--- a/tests/app/trace/trace-tests.ts
+++ b/tests/app/trace/trace-tests.ts
@@ -20,7 +20,7 @@ export var test_DummyTestForSnippetOnly1 = function () {
, trace.categories.Style
, trace.categories.ViewHierarchy
, trace.categories.VisualTreeEvents
- ));
+ ));
trace.enable();
// << trace-specific-categories
};
diff --git a/tests/app/ui/action-bar/ActionBar_BetweenTags.xml b/tests/app/ui/action-bar/ActionBar_BetweenTags.xml
index d50c1a78e..5b39a8732 100644
--- a/tests/app/ui/action-bar/ActionBar_BetweenTags.xml
+++ b/tests/app/ui/action-bar/ActionBar_BetweenTags.xml
@@ -12,4 +12,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/ui/action-bar/ActionBar_NumberAsText.xml b/tests/app/ui/action-bar/ActionBar_NumberAsText.xml
index af3c357ab..a4c279151 100644
--- a/tests/app/ui/action-bar/ActionBar_NumberAsText.xml
+++ b/tests/app/ui/action-bar/ActionBar_NumberAsText.xml
@@ -9,4 +9,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/ui/action-bar/ActionBar_NumberAsTitle.xml b/tests/app/ui/action-bar/ActionBar_NumberAsTitle.xml
index a7dc9fad2..373d47d61 100644
--- a/tests/app/ui/action-bar/ActionBar_NumberAsTitle.xml
+++ b/tests/app/ui/action-bar/ActionBar_NumberAsTitle.xml
@@ -6,4 +6,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/ui/action-bar/action-bar-tests-common.ts b/tests/app/ui/action-bar/action-bar-tests-common.ts
index fd88c9ae2..7be77399b 100644
--- a/tests/app/ui/action-bar/action-bar-tests-common.ts
+++ b/tests/app/ui/action-bar/action-bar-tests-common.ts
@@ -421,4 +421,4 @@ export function createPageAndNavigate() {
export function test_recycling() {
helper.nativeView_recycling_test(() => new actionBarModule.ActionBar());
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/action-bar/action-bar-tests.d.ts b/tests/app/ui/action-bar/action-bar-tests.d.ts
index a728573b3..2c6e74559 100644
--- a/tests/app/ui/action-bar/action-bar-tests.d.ts
+++ b/tests/app/ui/action-bar/action-bar-tests.d.ts
@@ -1,4 +1,4 @@
/* tslint:disable */
//@private
import * as android from "./action-bar-tests.android";
-import * as iOS from "./action-bar-tests.ios";
\ No newline at end of file
+import * as iOS from "./action-bar-tests.ios";
diff --git a/tests/app/ui/activity-indicator/activity-indicator-tests.ts b/tests/app/ui/activity-indicator/activity-indicator-tests.ts
index 5cb3af052..ad658e72a 100644
--- a/tests/app/ui/activity-indicator/activity-indicator-tests.ts
+++ b/tests/app/ui/activity-indicator/activity-indicator-tests.ts
@@ -66,7 +66,7 @@ if (platform.device.os === platform.platformNames.ios) {
/* tslint:disable:no-unused-variable */
function binding_busy_to_image() {
/* tslint:enable:no-unused-variable */
-
+
// >> activity-indicator-loading
var image = new imageModule.Image();
var indicator = new activityIndicatorModule.ActivityIndicator();
diff --git a/tests/app/ui/animation/animation-tests.ts b/tests/app/ui/animation/animation-tests.ts
index 22f0e8c43..4b3048bdb 100644
--- a/tests/app/ui/animation/animation-tests.ts
+++ b/tests/app/ui/animation/animation-tests.ts
@@ -501,10 +501,10 @@ export function test_AnimateExtent_Should_ThrowIfCannotParsePercentLength() {
const label = new Label();
helper.buildUIAndRunTest(label, (views: Array) => {
TKUnit.assertThrows(() => {
- label.animate({width: "-frog%"});
+ label.animate({ width: "-frog%" });
}, "Invalid percent string should throw");
TKUnit.assertThrows(() => {
- label.animate({height: "-frog%"});
+ label.animate({ height: "-frog%" });
}, "Invalid percent string should throw");
});
}
diff --git a/tests/app/ui/animation/css-animation-tests.ts b/tests/app/ui/animation/css-animation-tests.ts
index bc3b02069..01e2cf801 100644
--- a/tests/app/ui/animation/css-animation-tests.ts
+++ b/tests/app/ui/animation/css-animation-tests.ts
@@ -27,7 +27,7 @@ function createAnimationFromCSS(css: string, name: string): keyframeAnimation.Ke
}
function findSelectorInScope(scope: styleScope.StyleScope, cssClass: string): SelectorCore {
- let selectors = scope.query({cssClasses: new Set([cssClass])});
+ let selectors = scope.query({ cssClasses: new Set([cssClass]) });
return selectors[0];
}
@@ -426,12 +426,12 @@ export function test_AnimationCurveInKeyframes() {
function getTransformsValues(declarations) {
return Object.assign({},
...(Object).entries(getTransforms(declarations))
- .map(([k, v]) => ({[k]: v.value}))
+ .map(([k, v]) => ({ [k]: v.value }))
);
}
function getTransforms(declarations) {
- const [ translate, rotate, scale ] = [...declarations];
+ const [translate, rotate, scale] = [...declarations];
return { translate, rotate, scale };
}
diff --git a/tests/app/ui/animation/test-page.css b/tests/app/ui/animation/test-page.css
index be69ea5db..921e1ab52 100644
--- a/tests/app/ui/animation/test-page.css
+++ b/tests/app/ui/animation/test-page.css
@@ -1,5 +1,13 @@
@keyframes test {
- from { background-color: red; }
- 50% { background-color: yellow; }
- to { background-color: green; }
-}
\ No newline at end of file
+ from {
+ background-color: red;
+ }
+
+ 50% {
+ background-color: yellow;
+ }
+
+ to {
+ background-color: green;
+ }
+}
diff --git a/tests/app/ui/border/border-tests.ts b/tests/app/ui/border/border-tests.ts
index 8989d8bc8..ab545c034 100644
--- a/tests/app/ui/border/border-tests.ts
+++ b/tests/app/ui/border/border-tests.ts
@@ -5,4 +5,4 @@ import * as helper from "../../ui-helper";
export function test_recycling() {
helper.nativeView_recycling_test(() => new Border());
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.android.ts b/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.android.ts
index 1640c79de..b58d76b59 100644
--- a/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.android.ts
+++ b/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.android.ts
@@ -37,4 +37,4 @@ export function getOriginalFont(tabView: BottomNavigation): any {
typeface: tv.getTypeface(),
size: tv.getTextSize()
};
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.d.ts b/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.d.ts
index 35c7b99f8..50f6e9cfb 100644
--- a/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.d.ts
+++ b/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.d.ts
@@ -5,4 +5,4 @@ export function getNativeTabCount(tabView: BottomNavigation): number;
export function selectNativeTab(tabView: BottomNavigation, index: number): void;
export function getNativeSelectedIndex(tabView: BottomNavigation): number;
export function getNativeFont(tabView: BottomNavigation): any;
-export function getOriginalFont(tabView: BottomNavigation): any;
\ No newline at end of file
+export function getOriginalFont(tabView: BottomNavigation): any;
diff --git a/tests/app/ui/builder/builder-file-qualifiers-tests.ts b/tests/app/ui/builder/builder-file-qualifiers-tests.ts
index 1e572ab51..816d0fee5 100644
--- a/tests/app/ui/builder/builder-file-qualifiers-tests.ts
+++ b/tests/app/ui/builder/builder-file-qualifiers-tests.ts
@@ -427,7 +427,7 @@ export function testCustomComponentWithCode_JsCssQualifiers() {
}
function loadRightComponentXmlWithCodeFileAndCssFile() {
- return ``;
diff --git a/tests/app/ui/core/weak-event-listener/weak-event-listener-tests.ts b/tests/app/ui/core/weak-event-listener/weak-event-listener-tests.ts
index 885e6f202..663a3a180 100644
--- a/tests/app/ui/core/weak-event-listener/weak-event-listener-tests.ts
+++ b/tests/app/ui/core/weak-event-listener/weak-event-listener-tests.ts
@@ -103,7 +103,7 @@ export function test_listenerDoesNotRetainTarget(done) {
// with the v8 6.5 the GC does not release WeakRefs so fast if you pass them to a method
// that's why we are making the call to the addWeakEventListener in a closure so that the WeakRef will be easier released
- (function() {
+ (function () {
addWeakEventListener(sourceRef.get(), Observable.propertyChangeEvent, emptyHandler, targetRef.get());
})();
forceGC();
@@ -123,7 +123,7 @@ export function test_listenerDoesNotRetainSource(done) {
// with the v8 6.5 the GC does not release WeakRefs so fast if you pass them to a method
// that's why we are making the call to the addWeakEventListener in a closure so that the WeakRef will be easier released
- (function() {
+ (function () {
addWeakEventListener(sourceRef.get(), Observable.propertyChangeEvent, targetRef.get().onEvent, targetRef.get());
})();
forceGC();
diff --git a/tests/app/ui/date-picker/date-picker-tests.ts b/tests/app/ui/date-picker/date-picker-tests.ts
index 54cf29f05..f86a4f600 100644
--- a/tests/app/ui/date-picker/date-picker-tests.ts
+++ b/tests/app/ui/date-picker/date-picker-tests.ts
@@ -49,21 +49,21 @@ export class DatePickerTest extends testModule.UITest> date-picker-configure
@@ -74,14 +74,14 @@ export class DatePickerTest extends testModule.UITestcurrentPage).width = "50%";
(currentPage).height = "50%";
- TKUnit.waitUntilReady(() => {
- return currentPage.isLayoutValid;
- }, 1);
+ TKUnit.waitUntilReady(() => {
+ return currentPage.isLayoutValid;
+ }, 1);
let topFrameWidth = topFrame.getMeasuredWidth();
let topFrameHeight = topFrame.getMeasuredHeight();
@@ -37,9 +37,9 @@ export function test_percent_margin_set_to_page_support() {
let currentPage = topFrame.currentPage;
currentPage.margin = "10%";
- TKUnit.waitUntilReady(() => {
- return currentPage.isLayoutValid;
- }, 1);
+ TKUnit.waitUntilReady(() => {
+ return currentPage.isLayoutValid;
+ }, 1);
let topFrameWidth = topFrame.getMeasuredWidth();
let topFrameHeight = topFrame.getMeasuredHeight();
@@ -63,4 +63,4 @@ export function test_percent_margin_set_to_page_support() {
TKUnit.assertTrue(PercentLength.equals(currentPage.marginTop, 0));
TKUnit.assertTrue(PercentLength.equals(currentPage.marginRight, 0));
TKUnit.assertTrue(PercentLength.equals(currentPage.marginBottom, 0));
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/frame/frame-tests.d.ts b/tests/app/ui/frame/frame-tests.d.ts
index 3c09554ed..b5d4a53e0 100644
--- a/tests/app/ui/frame/frame-tests.d.ts
+++ b/tests/app/ui/frame/frame-tests.d.ts
@@ -1,3 +1,3 @@
/* tslint:disable */
//@private
-import * as android from "./frame-tests.android";
\ No newline at end of file
+import * as android from "./frame-tests.android";
diff --git a/tests/app/ui/frame/frame-tests.ios.ts b/tests/app/ui/frame/frame-tests.ios.ts
index ef08ea72d..6d77a78d6 100644
--- a/tests/app/ui/frame/frame-tests.ios.ts
+++ b/tests/app/ui/frame/frame-tests.ios.ts
@@ -1 +1 @@
-export * from "./frame-tests-common";
\ No newline at end of file
+export * from "./frame-tests-common";
diff --git a/tests/app/ui/image-cache/image-cache-tests.ts b/tests/app/ui/image-cache/image-cache-tests.ts
index c5c66b69d..2650ae4fe 100644
--- a/tests/app/ui/image-cache/image-cache-tests.ts
+++ b/tests/app/ui/image-cache/image-cache-tests.ts
@@ -8,7 +8,7 @@ import * as TKUnit from "../../tk-unit";
const sdkVersion = lazy(() => parseInt(device.sdkVersion));
-export const test_ImageCache_ValidUrl = function() {
+export const test_ImageCache_ValidUrl = function () {
// see https://github.com/NativeScript/NativeScript/issues/6643
if (sdkVersion() < 20) {
return;
@@ -46,7 +46,7 @@ export const test_ImageCache_ValidUrl = function() {
TKUnit.assertEqual(validKey, url, "Key should equal the provided url");
};
-export const test_ImageCache_NothingAtProvidedUrl = function() {
+export const test_ImageCache_NothingAtProvidedUrl = function () {
const cache = new imageCacheModule.Cache();
cache.maxRequests = 5;
diff --git a/tests/app/ui/image/image.md b/tests/app/ui/image/image.md
index 06c243969..54387e8ed 100644
--- a/tests/app/ui/image/image.md
+++ b/tests/app/ui/image/image.md
@@ -8,7 +8,7 @@ previous_url: /ApiReference/ui/image/HOW-TO
# Image
-The purpose of this article is to show the basic functionality of the Image view. The snippets demonstrates some scenarios and the usage of the ImageView specifics properties
+The purpose of this article is to show the basic functionality of the Image view. The snippets demonstrates some scenarios and the usage of the ImageView specifics properties
* [Binding image source property](#binding-image-source-property)
* [Loading an image from app resources](#loading-an-image-from-app-resources)
@@ -62,7 +62,7 @@ The example demonstrates how we could load an image, which is available in the A
``` XML
- {%raw%}{%endraw%}
+ {%raw%}{%endraw%}
```
@@ -83,13 +83,13 @@ The sample above, demonstrates, how to load an image source while providing URL
{%snippet img-create-local%}
-The Image source could be load also from a local file. The path to the image should start with a tilde(`~`) as it is shown in the example above. Using `~/` prefix, we can load images relative to the project `app` folder
+The Image source could be load also from a local file. The path to the image should start with a tilde(`~`) as it is shown in the example above. Using `~/` prefix, we can load images relative to the project `app` folder
### Loading an image from Data URI
{%snippet img-create-datauri%}
-In the sample code is shown, how to load an image source data, while using data URI.
+In the sample code is shown, how to load an image source data, while using data URI.
### Setting image stretching
diff --git a/tests/app/ui/label/label-tests-page.css b/tests/app/ui/label/label-tests-page.css
index d83ec92b3..fff3c4eb0 100644
--- a/tests/app/ui/label/label-tests-page.css
+++ b/tests/app/ui/label/label-tests-page.css
@@ -1,3 +1,3 @@
label {
background-color: red;
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/label/label-tests-wrong-page.css b/tests/app/ui/label/label-tests-wrong-page.css
index 139e1f048..1b71ea07c 100644
--- a/tests/app/ui/label/label-tests-wrong-page.css
+++ b/tests/app/ui/label/label-tests-wrong-page.css
@@ -1,4 +1,3 @@
label {
-
- background-color: red;
+ < !--Test wrong comment-->background-color: red;
}
diff --git a/tests/app/ui/layouts/absolute-layout-tests.ts b/tests/app/ui/layouts/absolute-layout-tests.ts
index 5855392a4..d623a565c 100644
--- a/tests/app/ui/layouts/absolute-layout-tests.ts
+++ b/tests/app/ui/layouts/absolute-layout-tests.ts
@@ -51,7 +51,7 @@ export class AbsoluteLayoutTest extends testModule.UITest {
diff --git a/tests/app/ui/layouts/grid-layout-tests.ts b/tests/app/ui/layouts/grid-layout-tests.ts
index 57a2d9538..3a331e822 100644
--- a/tests/app/ui/layouts/grid-layout-tests.ts
+++ b/tests/app/ui/layouts/grid-layout-tests.ts
@@ -121,7 +121,7 @@ export class GridLayoutTest extends testModule.UITest
public test_synonym_property_setting_column_changes_col() {
const test = new Button();
-
+
test.column = 3;
TKUnit.assertEqual(test.column, 3, "Setting column should work.");
@@ -130,7 +130,7 @@ export class GridLayoutTest extends testModule.UITest
public test_synonym_property_setting_col_changes_column() {
const test = new Button();
-
+
test.col = 3;
TKUnit.assertEqual(test.col, 3, "Setting col should work.");
@@ -139,7 +139,7 @@ export class GridLayoutTest extends testModule.UITest
public test_synonym_property_setColumn_should_set_col_and_column() {
const test = new Button();
-
+
GridLayout.setColumn(test, 3);
TKUnit.assertEqual(test.col, 3, "setColumn should set col");
@@ -148,7 +148,7 @@ export class GridLayoutTest extends testModule.UITest
public test_synonym_property_setting_columnSpan_changes_colSpan() {
const test = new Button();
-
+
test.columnSpan = 3;
TKUnit.assertEqual(test.columnSpan, 3, "Setting columnSpan should work.");
@@ -157,7 +157,7 @@ export class GridLayoutTest extends testModule.UITest
public test_synonym_property_setting_colSpan_changes_columnSpan() {
const test = new Button();
-
+
test.colSpan = 3;
TKUnit.assertEqual(test.colSpan, 3, "Setting colSpan should work.");
@@ -166,7 +166,7 @@ export class GridLayoutTest extends testModule.UITest
public test_synonym_property_setColumnSpan_should_set_colSpan_and_columnSpan() {
const test = new Button();
-
+
GridLayout.setColumnSpan(test, 3);
TKUnit.assertEqual(test.colSpan, 3, "setColumnSpan should set colSpan");
diff --git a/tests/app/ui/layouts/layout-helper.android.ts b/tests/app/ui/layouts/layout-helper.android.ts
index bd99021b2..5fe50dbf3 100644
--- a/tests/app/ui/layouts/layout-helper.android.ts
+++ b/tests/app/ui/layouts/layout-helper.android.ts
@@ -249,4 +249,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/tests/app/ui/layouts/layout-helper.ios.ts b/tests/app/ui/layouts/layout-helper.ios.ts
index a94b98c49..9cf88fc58 100644
--- a/tests/app/ui/layouts/layout-helper.ios.ts
+++ b/tests/app/ui/layouts/layout-helper.ios.ts
@@ -173,7 +173,7 @@ export class MyButton extends Button implements def.MyButton {
return bounds.bottom - bounds.top;
}
-
+
get layoutLeft(): number {
let bounds = this._getCurrentLayoutBounds();
diff --git a/tests/app/ui/layouts/safe-area-tests.ts b/tests/app/ui/layouts/safe-area-tests.ts
index 8813bb342..fea89f381 100644
--- a/tests/app/ui/layouts/safe-area-tests.ts
+++ b/tests/app/ui/layouts/safe-area-tests.ts
@@ -1033,7 +1033,7 @@ export class SafeAreaTests extends testModule.UITest {
greaterOrCloseEnough(width(cells[1][0]), width(cells[1][1]), `cell10 width<${width(cells[1][0])}> not greater or close enough cell11 width<${width(cells[1][1])}>`);
lessOrCloseEnough(width(cells[1][1]), width(cells[1][2]), `cell11 width<${width(cells[1][1])}> not less or close enough cell12 width<${width(cells[1][2])}>`);
-
+
const sumOfNestedGridWidths = width(cells[1][0]) + width(cells[1][1]) + width(cells[1][2]);
equal(width(grid), sumOfNestedGridWidths, `grid width<${width(grid)}> sum of nested grids width <${sumOfNestedGridWidths}>`);
},
diff --git a/tests/app/ui/layouts/stack-layout.md b/tests/app/ui/layouts/stack-layout.md
index 70ae8d596..dbe587baf 100644
--- a/tests/app/ui/layouts/stack-layout.md
+++ b/tests/app/ui/layouts/stack-layout.md
@@ -20,7 +20,7 @@ Using a StackLayout requires the StackLayout module.
## Create StackLayout
{%snippet stack-layout-new%}
-
+
## Add child view to layout
{%snippet stack-layout-addchild%}
diff --git a/tests/app/ui/lifecycle/package.json b/tests/app/ui/lifecycle/package.json
index aa7e0a202..0792e5bce 100644
--- a/tests/app/ui/lifecycle/package.json
+++ b/tests/app/ui/lifecycle/package.json
@@ -1,3 +1,3 @@
{
"main": "lifecycle-tests"
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/lifecycle/pages/page-one.css b/tests/app/ui/lifecycle/pages/page-one.css
index 75e1ae17d..137ff1384 100644
--- a/tests/app/ui/lifecycle/pages/page-one.css
+++ b/tests/app/ui/lifecycle/pages/page-one.css
@@ -1,4 +1,6 @@
-#btn2, #btn3, #btn4 {
+#btn2,
+#btn3,
+#btn4 {
border-width: 2;
border-color: teal;
border-radius: 20;
diff --git a/tests/app/ui/lifecycle/pages/page-two.css b/tests/app/ui/lifecycle/pages/page-two.css
index 80523328d..07a3ac074 100644
--- a/tests/app/ui/lifecycle/pages/page-two.css
+++ b/tests/app/ui/lifecycle/pages/page-two.css
@@ -12,4 +12,4 @@ Button {
.nocolor {
background: red;
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/list-picker/list-picker-tests-native.android.ts b/tests/app/ui/list-picker/list-picker-tests-native.android.ts
index a22b11877..dbbe9acd4 100644
--- a/tests/app/ui/list-picker/list-picker-tests-native.android.ts
+++ b/tests/app/ui/list-picker/list-picker-tests-native.android.ts
@@ -14,4 +14,4 @@ export function selectNativeItem(listPicker: listPickerModule.ListPicker, index:
var oldIndex = listPicker.selectedIndex;
listPicker.nativeViewProtected.setValue(index);
listPicker.nativeViewProtected.valueChangedListener.onValueChange(listPicker.android, oldIndex, index);
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/list-picker/list-picker-tests.ts b/tests/app/ui/list-picker/list-picker-tests.ts
index b62dd4547..057e4aceb 100644
--- a/tests/app/ui/list-picker/list-picker-tests.ts
+++ b/tests/app/ui/list-picker/list-picker-tests.ts
@@ -233,4 +233,4 @@ export var test_Android_WhenSelectedIndexChangesEditTextIsUpdatedProperly = func
var actualValue = listPicker.nativeViewProtected.editText.getText().toString();
TKUnit.assertEqual(actualValue, expectedValue);
});
-};
\ No newline at end of file
+};
diff --git a/tests/app/ui/list-view/list-view-view-model.ts b/tests/app/ui/list-view/list-view-view-model.ts
index 5326ed31b..bc5a4a68b 100644
--- a/tests/app/ui/list-view/list-view-view-model.ts
+++ b/tests/app/ui/list-view/list-view-view-model.ts
@@ -16,4 +16,4 @@ export class ViewModel extends Observable {
});
}
}
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/page/modal-page.xml b/tests/app/ui/page/modal-page.xml
index 3a168cf3e..3faf986cb 100644
--- a/tests/app/ui/page/modal-page.xml
+++ b/tests/app/ui/page/modal-page.xml
@@ -2,4 +2,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/ui/page/modal-tab-root.xml b/tests/app/ui/page/modal-tab-root.xml
index 9760affe7..f141d2274 100644
--- a/tests/app/ui/page/modal-tab-root.xml
+++ b/tests/app/ui/page/modal-tab-root.xml
@@ -8,4 +8,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/ui/page/page-tests.d.ts b/tests/app/ui/page/page-tests.d.ts
index 0fd0251d4..f367b2245 100644
--- a/tests/app/ui/page/page-tests.d.ts
+++ b/tests/app/ui/page/page-tests.d.ts
@@ -1,4 +1,4 @@
/* tslint:disable */
//@private
import * as android from "./page-tests.android";
-import * as iOS from "./page-tests.ios";
\ No newline at end of file
+import * as iOS from "./page-tests.ios";
diff --git a/tests/app/ui/page/page-tests.ios.ts b/tests/app/ui/page/page-tests.ios.ts
index 3be99e136..204cc753a 100644
--- a/tests/app/ui/page/page-tests.ios.ts
+++ b/tests/app/ui/page/page-tests.ios.ts
@@ -1,4 +1,4 @@
- import { Page, View, EventData } from "tns-core-modules/ui/page";
+import { Page, View, EventData } from "tns-core-modules/ui/page";
import { Label } from "tns-core-modules/ui/label";
import { topmost } from "tns-core-modules/ui/frame";
import * as TKUnit from "../../tk-unit";
diff --git a/tests/app/ui/page/page21.xml b/tests/app/ui/page/page21.xml
index e3a0c50da..f61e4462d 100644
--- a/tests/app/ui/page/page21.xml
+++ b/tests/app/ui/page/page21.xml
@@ -3,4 +3,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/ui/page/test-declarative-css-page.css b/tests/app/ui/page/test-declarative-css-page.css
index 1cebd4dd0..a0e61f439 100644
--- a/tests/app/ui/page/test-declarative-css-page.css
+++ b/tests/app/ui/page/test-declarative-css-page.css
@@ -1,3 +1,3 @@
Label {
background-color: #ff00ff00;
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/page/test-declarative-css-page.xml b/tests/app/ui/page/test-declarative-css-page.xml
index af7ce14a3..79f3e3dfd 100644
--- a/tests/app/ui/page/test-declarative-css-page.xml
+++ b/tests/app/ui/page/test-declarative-css-page.xml
@@ -1,3 +1,3 @@
-
\ No newline at end of file
+
diff --git a/tests/app/ui/page/test-module-css-page.css b/tests/app/ui/page/test-module-css-page.css
index 1cebd4dd0..a0e61f439 100644
--- a/tests/app/ui/page/test-module-css-page.css
+++ b/tests/app/ui/page/test-module-css-page.css
@@ -1,3 +1,3 @@
Label {
background-color: #ff00ff00;
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/placeholder/placeholder-tests.ts b/tests/app/ui/placeholder/placeholder-tests.ts
index 724a8e6fe..f00df319f 100644
--- a/tests/app/ui/placeholder/placeholder-tests.ts
+++ b/tests/app/ui/placeholder/placeholder-tests.ts
@@ -52,7 +52,7 @@ export function test_placeholder_creatingView() {
}
export function test_placeholder_will_not_crash_wihout_creatingView() {
- const p = new placeholderModule.Placeholder();
+ const p = new placeholderModule.Placeholder();
function testAction(views: Array) {
if (isIOS) {
@@ -63,4 +63,4 @@ export function test_placeholder_will_not_crash_wihout_creatingView() {
}
helper.buildUIAndRunTest(p, testAction);
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/repeater/repeater-safe-area-tests.ts b/tests/app/ui/repeater/repeater-safe-area-tests.ts
index ae123d294..c2f45cae1 100644
--- a/tests/app/ui/repeater/repeater-safe-area-tests.ts
+++ b/tests/app/ui/repeater/repeater-safe-area-tests.ts
@@ -5,7 +5,7 @@ import * as view from "tns-core-modules/ui/core/view";
import * as platform from "tns-core-modules/platform";
import { Repeater } from "tns-core-modules/ui/repeater";
import { UITest } from "../../ui-test";
-import { left, top, right, bottom, equal } from "../layouts/layout-tests-helper";
+import { left, top, right, bottom, equal } from "../layouts/layout-tests-helper";
export class RepeaterSafeAreaTest extends UITest {
diff --git a/tests/app/ui/repeater/repeaterItems-bindingToGestures-page.ts b/tests/app/ui/repeater/repeaterItems-bindingToGestures-page.ts
index 3d79b8e98..0d0c1f946 100644
--- a/tests/app/ui/repeater/repeaterItems-bindingToGestures-page.ts
+++ b/tests/app/ui/repeater/repeaterItems-bindingToGestures-page.ts
@@ -12,4 +12,4 @@ exports.pageLoaded = pageLoaded;
exports.tapPage = function (args) {
console.log("Tap! " + args + " " + args.object);
-};
\ No newline at end of file
+};
diff --git a/tests/app/ui/repeater/repeaterItems-bindingToGestures-page.xml b/tests/app/ui/repeater/repeaterItems-bindingToGestures-page.xml
index 935170bcc..c3e81d759 100644
--- a/tests/app/ui/repeater/repeaterItems-bindingToGestures-page.xml
+++ b/tests/app/ui/repeater/repeaterItems-bindingToGestures-page.xml
@@ -6,4 +6,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/ui/root-view/mymodule/package.json b/tests/app/ui/root-view/mymodule/package.json
index 501894536..74604969c 100644
--- a/tests/app/ui/root-view/mymodule/package.json
+++ b/tests/app/ui/root-view/mymodule/package.json
@@ -1,2 +1,4 @@
-{ "name" : "MyControl",
- "main" : "MyControl.js" }
+{
+ "name": "MyControl",
+ "main": "MyControl.js"
+}
diff --git a/tests/app/ui/root-view/root-modules/custom-component-root.css b/tests/app/ui/root-view/root-modules/custom-component-root.css
index 846004e03..54ce7bac1 100644
--- a/tests/app/ui/root-view/root-modules/custom-component-root.css
+++ b/tests/app/ui/root-view/root-modules/custom-component-root.css
@@ -1,3 +1,3 @@
.MyStackLayoutRoot {
background-color: blue;
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/root-view/root-modules/custom-component-root.xml b/tests/app/ui/root-view/root-modules/custom-component-root.xml
index ed7b48fa5..5687d7512 100644
--- a/tests/app/ui/root-view/root-modules/custom-component-root.xml
+++ b/tests/app/ui/root-view/root-modules/custom-component-root.xml
@@ -1,2 +1,2 @@
-
\ No newline at end of file
+
diff --git a/tests/app/ui/root-view/root-modules/gridlayout-root.css b/tests/app/ui/root-view/root-modules/gridlayout-root.css
index 846004e03..54ce7bac1 100644
--- a/tests/app/ui/root-view/root-modules/gridlayout-root.css
+++ b/tests/app/ui/root-view/root-modules/gridlayout-root.css
@@ -1,3 +1,3 @@
.MyStackLayoutRoot {
background-color: blue;
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/root-view/root-modules/gridlayout-root.xml b/tests/app/ui/root-view/root-modules/gridlayout-root.xml
index 834d13602..99cfa9160 100644
--- a/tests/app/ui/root-view/root-modules/gridlayout-root.xml
+++ b/tests/app/ui/root-view/root-modules/gridlayout-root.xml
@@ -1,3 +1,3 @@
-
\ No newline at end of file
+
diff --git a/tests/app/ui/root-view/root-modules/tabview-root.css b/tests/app/ui/root-view/root-modules/tabview-root.css
index c6b90d531..85f707e97 100644
--- a/tests/app/ui/root-view/root-modules/tabview-root.css
+++ b/tests/app/ui/root-view/root-modules/tabview-root.css
@@ -1,3 +1,3 @@
TabView {
selected-tab-text-color: blue;
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/root-view/root-modules/tabview-root.xml b/tests/app/ui/root-view/root-modules/tabview-root.xml
index 89933d778..601ebeba8 100644
--- a/tests/app/ui/root-view/root-modules/tabview-root.xml
+++ b/tests/app/ui/root-view/root-modules/tabview-root.xml
@@ -14,4 +14,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/ui/search-bar/search-bar-code-snippet.ts b/tests/app/ui/search-bar/search-bar-code-snippet.ts
index 7b56a8544..fc129ac91 100644
--- a/tests/app/ui/search-bar/search-bar-code-snippet.ts
+++ b/tests/app/ui/search-bar/search-bar-code-snippet.ts
@@ -14,4 +14,4 @@ export function onSubmit(args) {
var searchbar: SearchBar = args.object;
console.log("Search submit result: " + searchbar.text);
}
-// << searchbar-submit
\ No newline at end of file
+// << searchbar-submit
diff --git a/tests/app/ui/search-bar/search-bar-tests.ts b/tests/app/ui/search-bar/search-bar-tests.ts
index c22686947..70e8d9062 100644
--- a/tests/app/ui/search-bar/search-bar-tests.ts
+++ b/tests/app/ui/search-bar/search-bar-tests.ts
@@ -107,7 +107,8 @@ export var testSearchBarPropertiesWithCSS = function () {
TKUnit.assert(hintColorActualValue === expectedHintColor, "HintColor - Actual: " + hintColorActualValue + "; Expected: " + expectedHintColor);
TKUnit.assert(expectedTextFieldBackgroundColor === textFieldBackgroundColorActualValue, "Text Background Color - Actual: " + textFieldBackgroundColorActualValue + "; Expected: " + expectedTextFieldBackgroundColor);
TKUnit.assertAreClose(expectedFontSize, fontSizeActualValue, 0.2, "Font Size - Actual: " + fontSizeActualValue + "; Expected: " + expectedFontSize);
- }, { pageCss: `
+ }, {
+ pageCss: `
SearchBar {
text-field-hint-color: blue;
text-field-background-color: red;
diff --git a/tests/app/ui/slider/slider-tests.ts b/tests/app/ui/slider/slider-tests.ts
index 75ef51571..2fe0276d6 100644
--- a/tests/app/ui/slider/slider-tests.ts
+++ b/tests/app/ui/slider/slider-tests.ts
@@ -530,4 +530,4 @@ function setNativeValue(slider: Slider, value: number) {
// setting value trough code does not send notification, so simulate that manually.
slider.ios.sendActionsForControlEvents(UIControlEvents.ValueChanged);
}
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/styling/style-tests.ts b/tests/app/ui/styling/style-tests.ts
index db4c180c4..1039f51c3 100644
--- a/tests/app/ui/styling/style-tests.ts
+++ b/tests/app/ui/styling/style-tests.ts
@@ -1474,7 +1474,7 @@ export function test_css_calc() {
TKUnit.assertEqual(stack.width as any, 125, "Stack - width === 125");
(stack as any).style = `width: calc(100% / 2)`;
- TKUnit.assertDeepEqual(stack.width, { unit: "%", value: 0.5 }, "Stack - width === 50%");
+ TKUnit.assertDeepEqual(stack.width, { unit: "%", value: 0.5 }, "Stack - width === 50%");
// This should log an error for the invalid css-calc expression, but not cause a crash
stack.className = "invalid-css-calc";
@@ -1545,7 +1545,7 @@ export function test_nested_css_calc() {
(stack as any).style = `width: calc(100% * calc(1 / 2)`;
- TKUnit.assertDeepEqual(stack.width, { unit: "%", value: 0.5 }, "Stack - width === 50%");
+ TKUnit.assertDeepEqual(stack.width, { unit: "%", value: 0.5 }, "Stack - width === 50%");
}
export function test_css_variables() {
@@ -1655,7 +1655,7 @@ export function test_css_calc_and_variables() {
// Test setting the CSS variable via the style-attribute, this should override any value set via css-class
(stack as any).style = `${cssVarName}: 0.5`;
- TKUnit.assertDeepEqual(stack.width, { unit: "%", value: 0.5 }, "Stack - width === 50%");
+ TKUnit.assertDeepEqual(stack.width, { unit: "%", value: 0.5 }, "Stack - width === 50%");
}
export function test_css_variable_fallback() {
@@ -1796,10 +1796,10 @@ export function test_nested_css_calc_and_variables() {
// Test setting the CSS variable via the style-attribute, this should override any value set via css-class
stack.className = "wide";
(stack as any).style = `${cssVarName}: 0.25`;
- TKUnit.assertDeepEqual(stack.width, { unit: "%", value: 0.5 }, "Stack - width === 50%");
+ TKUnit.assertDeepEqual(stack.width, { unit: "%", value: 0.5 }, "Stack - width === 50%");
stack.className = "nested";
- TKUnit.assertDeepEqual(stack.width, { unit: "%", value: 1 }, "Stack - width === 100%");
+ TKUnit.assertDeepEqual(stack.width, { unit: "%", value: 1 }, "Stack - width === 100%");
}
export function test_css_variable_is_applied_to_normal_properties() {
diff --git a/tests/app/ui/styling/styling.md b/tests/app/ui/styling/styling.md
index abc2a1527..59ab6ecae 100644
--- a/tests/app/ui/styling/styling.md
+++ b/tests/app/ui/styling/styling.md
@@ -17,4 +17,4 @@ previous_url: ApiReference/ui/styling/HOW-TO
{%snippet article-using-id-selector%}
### Using state selector
{%snippet article-using-state-selector%}
-For information and example how to use style properties please refer to special [**Styling**](../../../styling.md) topic.
+For information and example how to use style properties please refer to special [**Styling**](../../../styling.md) topic.
diff --git a/tests/app/ui/styling/test-page.css b/tests/app/ui/styling/test-page.css
index b310c84d7..e29ed1188 100644
--- a/tests/app/ui/styling/test-page.css
+++ b/tests/app/ui/styling/test-page.css
@@ -1 +1,3 @@
-page { background-color: red; }
\ No newline at end of file
+page {
+ background-color: red;
+}
diff --git a/tests/app/ui/tab-view/tab-view-tests-native.android.ts b/tests/app/ui/tab-view/tab-view-tests-native.android.ts
index b1f11b753..405ee0f32 100644
--- a/tests/app/ui/tab-view/tab-view-tests-native.android.ts
+++ b/tests/app/ui/tab-view/tab-view-tests-native.android.ts
@@ -38,4 +38,4 @@ export function getOriginalFont(tabView: TabView): any {
typeface: tv.getTypeface(),
size: tv.getTextSize()
};
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/tab-view/tab-view-tests-native.d.ts b/tests/app/ui/tab-view/tab-view-tests-native.d.ts
index 26984255a..c54065b6d 100644
--- a/tests/app/ui/tab-view/tab-view-tests-native.d.ts
+++ b/tests/app/ui/tab-view/tab-view-tests-native.d.ts
@@ -5,4 +5,4 @@ export function getNativeTabCount(tabView: TabView): number;
export function selectNativeTab(tabView: TabView, index: number): void;
export function getNativeSelectedIndex(tabView: TabView): number;
export function getNativeFont(tabView: TabView): any;
-export function getOriginalFont(tabView: TabView): any;
\ No newline at end of file
+export function getOriginalFont(tabView: TabView): any;
diff --git a/tests/app/ui/tab-view/tab-view.md b/tests/app/ui/tab-view/tab-view.md
index f21ab1292..04f3c2fea 100644
--- a/tests/app/ui/tab-view/tab-view.md
+++ b/tests/app/ui/tab-view/tab-view.md
@@ -10,8 +10,8 @@ The TabView is a component, which allows to navigate between different views. Th
> Note (iOS specific): `UITabBarController` is used in the implementation, which means that only one `TabViewItem` can be shown at a given time and only one needs to be loaded. When the user selects a new `TabViewItem`, we load the new item and unload the previous one.
-> Note (Android specific): In the Android implementation is used `ViewPager` controller, which allows using the `swipe` gesture to navigate to the next or previous tab. This means that only one `TabViewItem` can be shown, but multiple `TabViewItems` need to be loaded. Otherwise, after left or right swipe, you will not see the `TabViewItem`'s contents, after the swiping. By default, the ViewPager controller will pre-load one `TabViewItem` on the left and on on the right. Regarding that, if one of the items is already pre-loaded, it will not be loaded again. In the Android, we have exposed a property called `androidOffscreenTabLimit`, which allow specifying, how many components should be pre-load on the left and right (if you are setting up `androidOffscreenTabLimit` to 0, the Android TabView will match to the iOS TabView).
-
+> Note (Android specific): In the Android implementation is used `ViewPager` controller, which allows using the `swipe` gesture to navigate to the next or previous tab. This means that only one `TabViewItem` can be shown, but multiple `TabViewItems` need to be loaded. Otherwise, after left or right swipe, you will not see the `TabViewItem`'s contents, after the swiping. By default, the ViewPager controller will pre-load one `TabViewItem` on the left and on on the right. Regarding that, if one of the items is already pre-loaded, it will not be loaded again. In the Android, we have exposed a property called `androidOffscreenTabLimit`, which allow specifying, how many components should be pre-load on the left and right (if you are setting up `androidOffscreenTabLimit` to 0, the Android TabView will match to the iOS TabView).
+
The iOS and Android UX guidelines regarding the Tab controls differ greatly. The difference is described in the below points:
* The iOS tabs have their tab bar, which will be displayed always on the bottom and does not allow swipe gesture for changing tabs.
@@ -53,7 +53,7 @@ export function onSelectedIndexChanged(args) {...}
## Styling TabView
-For the TabView component could be set three different styling properties
+For the TabView component could be set three different styling properties
* `selectedTabTextColor` (coresponding CSS property `selected-tab-text-color `) - change the color of the text, while selecting some of the tabs.
* `tabBackgroundColor` (coresponding CSS property `tab-background-color`) - changing the background of the tabs.
diff --git a/tests/app/ui/tabs/tabs-tests-native.android.ts b/tests/app/ui/tabs/tabs-tests-native.android.ts
index 1640c79de..b58d76b59 100644
--- a/tests/app/ui/tabs/tabs-tests-native.android.ts
+++ b/tests/app/ui/tabs/tabs-tests-native.android.ts
@@ -37,4 +37,4 @@ export function getOriginalFont(tabView: BottomNavigation): any {
typeface: tv.getTypeface(),
size: tv.getTextSize()
};
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/tabs/tabs-tests-native.d.ts b/tests/app/ui/tabs/tabs-tests-native.d.ts
index 26984255a..c54065b6d 100644
--- a/tests/app/ui/tabs/tabs-tests-native.d.ts
+++ b/tests/app/ui/tabs/tabs-tests-native.d.ts
@@ -5,4 +5,4 @@ export function getNativeTabCount(tabView: TabView): number;
export function selectNativeTab(tabView: TabView, index: number): void;
export function getNativeSelectedIndex(tabView: TabView): number;
export function getNativeFont(tabView: TabView): any;
-export function getOriginalFont(tabView: TabView): any;
\ No newline at end of file
+export function getOriginalFont(tabView: TabView): any;
diff --git a/tests/app/ui/tabs/tabs-tests-native.ios.ts b/tests/app/ui/tabs/tabs-tests-native.ios.ts
index fff583590..2644cb157 100644
--- a/tests/app/ui/tabs/tabs-tests-native.ios.ts
+++ b/tests/app/ui/tabs/tabs-tests-native.ios.ts
@@ -40,4 +40,4 @@ export function getNativeFont(tabView: Tabs): UIFont {
export function getOriginalFont(tabView: Tabs): UIFont {
return tabView.style.fontInternal.getUIFont(UIFont.systemFontOfSize(10));
-}
\ No newline at end of file
+}
diff --git a/tests/app/ui/test-pages/bindingExpressions_comparisonOperators_testPage.ts b/tests/app/ui/test-pages/bindingExpressions_comparisonOperators_testPage.ts
index 043129845..1688dde51 100644
--- a/tests/app/ui/test-pages/bindingExpressions_comparisonOperators_testPage.ts
+++ b/tests/app/ui/test-pages/bindingExpressions_comparisonOperators_testPage.ts
@@ -2,5 +2,5 @@
export function pageLoaded(args) {
var page = args.object;
- page.bindingContext = { var0: 0, var1: 1};
+ page.bindingContext = { var0: 0, var1: 1 };
}
diff --git a/tests/app/ui/test-pages/bindingExpressions_unaryOperators_testPage.ts b/tests/app/ui/test-pages/bindingExpressions_unaryOperators_testPage.ts
index 738506f89..5cde55388 100644
--- a/tests/app/ui/test-pages/bindingExpressions_unaryOperators_testPage.ts
+++ b/tests/app/ui/test-pages/bindingExpressions_unaryOperators_testPage.ts
@@ -2,5 +2,5 @@
export function pageLoaded(args) {
var page = args.object;
- page.bindingContext = { varStr: "5", varNum: 3, varTrue: true, varText: "Text"};
+ page.bindingContext = { varStr: "5", varNum: 3, varTrue: true, varText: "Text" };
}
diff --git a/tests/app/ui/text-field/text-field-tests-native.ios.ts b/tests/app/ui/text-field/text-field-tests-native.ios.ts
index 36a574acf..ab14e166a 100644
--- a/tests/app/ui/text-field/text-field-tests-native.ios.ts
+++ b/tests/app/ui/text-field/text-field-tests-native.ios.ts
@@ -46,7 +46,7 @@ export function getNativeTextAlignment(textField: textFieldModule.TextField): st
export function typeTextNatively(textField: textFieldModule.TextField, text: string): void {
textField.ios.text = text;
-
+
// Setting the text will not trigger the delegate method, so we have to do it by hand.
textField.ios.delegate.textFieldDidEndEditing(textField.ios);
}
diff --git a/tests/app/ui/text-field/text-field.md b/tests/app/ui/text-field/text-field.md
index 35f1eb094..8ccc96498 100644
--- a/tests/app/ui/text-field/text-field.md
+++ b/tests/app/ui/text-field/text-field.md
@@ -34,4 +34,4 @@ Using a TextField requires the text-field module.
```
-```
\ No newline at end of file
+```
diff --git a/tests/app/ui/text-view/text-view-tests-native.ios.ts b/tests/app/ui/text-view/text-view-tests-native.ios.ts
index 883bd7df0..4aeae4985 100644
--- a/tests/app/ui/text-view/text-view-tests-native.ios.ts
+++ b/tests/app/ui/text-view/text-view-tests-native.ios.ts
@@ -47,7 +47,7 @@ export function getNativeTextAlignment(textView: textViewModule.TextView): strin
export function typeTextNatively(textView: textViewModule.TextView, text: string): void {
textView.ios.text = text;
-
+
// Setting the text will not trigger the delegate method, so we have to do it by hand.
textView.ios.delegate.textViewDidEndEditing(textView.ios);
}
diff --git a/tests/app/ui/text-view/text-view-tests.ts b/tests/app/ui/text-view/text-view-tests.ts
index 39baf77f6..2df5b7baa 100644
--- a/tests/app/ui/text-view/text-view-tests.ts
+++ b/tests/app/ui/text-view/text-view-tests.ts
@@ -27,10 +27,10 @@ import * as observable from "tns-core-modules/data/observable";
// << text-view-xml
// >> observable-declare
export function pageLoaded(args) {
- let page = args.object;
- let obj = new observable.Observable();
- obj.set("someProperty", "Please change this text!");
- page.bindingContext = obj;
+ let page = args.object;
+ let obj = new observable.Observable();
+ obj.set("someProperty", "Please change this text!");
+ page.bindingContext = obj;
}
exports.pageLoaded = pageLoaded;
// << observable-declare
diff --git a/tests/app/ui/web-view/test.html b/tests/app/ui/web-view/test.html
index 814337463..0852b62f9 100644
--- a/tests/app/ui/web-view/test.html
+++ b/tests/app/ui/web-view/test.html
@@ -1,10 +1,13 @@
+
MyTitle
-
+
+
TestÖ
+
diff --git a/tests/app/ui/web-view/web-view-code-snippet.ts b/tests/app/ui/web-view/web-view-code-snippet.ts
index 164d03263..cc5216496 100644
--- a/tests/app/ui/web-view/web-view-code-snippet.ts
+++ b/tests/app/ui/web-view/web-view-code-snippet.ts
@@ -21,4 +21,4 @@ export function webViewLoaded(args) {
webview.android.getSettings().setDisplayZoomControls(false);
}
}
-// << web-view-loaded
\ No newline at end of file
+// << web-view-loaded
diff --git a/tests/app/ui/web-view/web-view.md b/tests/app/ui/web-view/web-view.md
index 303f4708f..d8153f056 100644
--- a/tests/app/ui/web-view/web-view.md
+++ b/tests/app/ui/web-view/web-view.md
@@ -34,4 +34,4 @@ Using a WebView requires the web-view module.
{%snippet web-view-loaded%}
->Note: to be able to use gestures in `WebView` component on Android, we should first disabled the zoom control. To do that we could access the `android` property and with the help of `setDisplayZoomControls` to set this controll to `false`.
\ No newline at end of file
+>Note: to be able to use gestures in `WebView` component on Android, we should first disabled the zoom control. To do that we could access the `android` property and with the help of `setDisplayZoomControls` to set this controll to `false`.
diff --git a/tests/app/xhr/xhr-tests.ts b/tests/app/xhr/xhr-tests.ts
index 52d2669bf..bfd82293e 100644
--- a/tests/app/xhr/xhr-tests.ts
+++ b/tests/app/xhr/xhr-tests.ts
@@ -273,7 +273,7 @@ export function test_xhr_responseType_rss() {
const response = {
statusCode: 200,
content: {
- toString: function() { return this.raw; },
+ toString: function () { return this.raw; },
raw: rawRssFeed
},
headers: {
@@ -291,7 +291,7 @@ export function test_xhr_responseType_text() {
const response = {
statusCode: 200,
content: {
- toString: function() { return this.raw; },
+ toString: function () { return this.raw; },
raw: "response body"
},
headers: {
@@ -310,7 +310,7 @@ export function test_xhr_responseType_switched_to_JSON_if_header_present() {
const response = {
statusCode: 200,
content: {
- toString: function() { return this.raw; },
+ toString: function () { return this.raw; },
raw: "{\"data\": 42}"
},
headers: {
@@ -381,7 +381,7 @@ export function test_responseType(done) {
() => xhr.responseType = "arraybuffer",
"Didn't raise on unsupported type.",
"Response type of 'arraybuffer' not supported."
- );
+ );
done(null);
}
@@ -390,7 +390,7 @@ export function test_getResponseHeader() {
const response = {
statusCode: 200,
content: {
- toString: function() { return this.raw; },
+ toString: function () { return this.raw; },
raw: "{\"data\": 42}"
},
headers: {
@@ -408,4 +408,4 @@ export function test_soap_content_types_recognized_as_text() {
TKUnit.assertTrue(xhr.isTextContentType("text/xml"), "text/xml failed to be recognized as a text response type");
TKUnit.assertTrue(xhr.isTextContentType("application/xml"), "application/xml failed to be recognized as a text response type");
-}
\ No newline at end of file
+}
diff --git a/tests/app/xml-declaration/custom-css-file-page.css b/tests/app/xml-declaration/custom-css-file-page.css
index 88f23ee03..edb66e12b 100644
--- a/tests/app/xml-declaration/custom-css-file-page.css
+++ b/tests/app/xml-declaration/custom-css-file-page.css
@@ -4,4 +4,4 @@
stack-layout {
background-color: green;
-}
\ No newline at end of file
+}
diff --git a/tests/app/xml-declaration/errors/non-existing-element.xml b/tests/app/xml-declaration/errors/non-existing-element.xml
index 94d08cf46..f32f13b59 100644
--- a/tests/app/xml-declaration/errors/non-existing-element.xml
+++ b/tests/app/xml-declaration/errors/non-existing-element.xml
@@ -11,4 +11,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/xml-declaration/mainPage.xml b/tests/app/xml-declaration/mainPage.xml
index ecb6f28c7..9f7b9cb3e 100644
--- a/tests/app/xml-declaration/mainPage.xml
+++ b/tests/app/xml-declaration/mainPage.xml
@@ -85,4 +85,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/xml-declaration/mymodule/package.json b/tests/app/xml-declaration/mymodule/package.json
index 501894536..74604969c 100644
--- a/tests/app/xml-declaration/mymodule/package.json
+++ b/tests/app/xml-declaration/mymodule/package.json
@@ -1,2 +1,4 @@
-{ "name" : "MyControl",
- "main" : "MyControl.js" }
+{
+ "name": "MyControl",
+ "main": "MyControl.js"
+}
diff --git a/tests/app/xml-declaration/mymodulewithxml/MyControl.xml b/tests/app/xml-declaration/mymodulewithxml/MyControl.xml
index 66947b5fd..a4b5a4f7d 100644
--- a/tests/app/xml-declaration/mymodulewithxml/MyControl.xml
+++ b/tests/app/xml-declaration/mymodulewithxml/MyControl.xml
@@ -1,4 +1,4 @@
-
+
diff --git a/tests/app/xml-declaration/mymodulewithxml/TabViewParentChainPage.xml b/tests/app/xml-declaration/mymodulewithxml/TabViewParentChainPage.xml
index 91322cd7d..b02603175 100644
--- a/tests/app/xml-declaration/mymodulewithxml/TabViewParentChainPage.xml
+++ b/tests/app/xml-declaration/mymodulewithxml/TabViewParentChainPage.xml
@@ -13,4 +13,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/xml-declaration/mymodulewithxml/package.json b/tests/app/xml-declaration/mymodulewithxml/package.json
index 501894536..74604969c 100644
--- a/tests/app/xml-declaration/mymodulewithxml/package.json
+++ b/tests/app/xml-declaration/mymodulewithxml/package.json
@@ -1,2 +1,4 @@
-{ "name" : "MyControl",
- "main" : "MyControl.js" }
+{
+ "name": "MyControl",
+ "main": "MyControl.js"
+}
diff --git a/tests/app/xml-declaration/package.json b/tests/app/xml-declaration/package.json
index fd72725e6..e572ab913 100644
--- a/tests/app/xml-declaration/package.json
+++ b/tests/app/xml-declaration/package.json
@@ -1,2 +1,4 @@
-{ "name" : "xml-declaration",
- "main" : "app.js" }
+{
+ "name": "xml-declaration",
+ "main": "app.js"
+}
diff --git a/tests/app/xml-declaration/template-builder-tests/event-in-codeless-fragment-the-fragment.xml b/tests/app/xml-declaration/template-builder-tests/event-in-codeless-fragment-the-fragment.xml
index 68fa7cae3..1e1752253 100644
--- a/tests/app/xml-declaration/template-builder-tests/event-in-codeless-fragment-the-fragment.xml
+++ b/tests/app/xml-declaration/template-builder-tests/event-in-codeless-fragment-the-fragment.xml
@@ -2,4 +2,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/xml-declaration/template-builder-tests/event-in-template.ts b/tests/app/xml-declaration/template-builder-tests/event-in-template.ts
index 8f4a6ef91..d6ab1ab70 100644
--- a/tests/app/xml-declaration/template-builder-tests/event-in-template.ts
+++ b/tests/app/xml-declaration/template-builder-tests/event-in-template.ts
@@ -1,4 +1,4 @@
// Our unit test will set this function and expect it to be set as a handler on a View in the XML.
export interface ITestEvent {
test: (args: any) => void;
-}
\ No newline at end of file
+}
diff --git a/tests/app/xml-declaration/template-builder-tests/template-view.ts b/tests/app/xml-declaration/template-builder-tests/template-view.ts
index 8100fa65e..a41e792c5 100644
--- a/tests/app/xml-declaration/template-builder-tests/template-view.ts
+++ b/tests/app/xml-declaration/template-builder-tests/template-view.ts
@@ -10,14 +10,14 @@ export class TemplateView extends LayoutBase {
public template: string;
public static testEvent: string = "test";
-
+
public parseTemplate() {
this.addChild(parse(this.template));
}
}
export const templateProperty = new Property({
- name: "template",
- affectsLayout: true
- });
+ name: "template",
+ affectsLayout: true
+});
templateProperty.register(TemplateView);
diff --git a/tests/app/xml-declaration/tns.xsd b/tests/app/xml-declaration/tns.xsd
index 3cb36961b..fa91c7690 100644
--- a/tests/app/xml-declaration/tns.xsd
+++ b/tests/app/xml-declaration/tns.xsd
@@ -832,4 +832,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/xml-parser-tests/itemTemplates.xml b/tests/app/xml-parser-tests/itemTemplates.xml
index 1836d9d2e..07a2c63f4 100644
--- a/tests/app/xml-parser-tests/itemTemplates.xml
+++ b/tests/app/xml-parser-tests/itemTemplates.xml
@@ -12,4 +12,4 @@
-
\ No newline at end of file
+
diff --git a/tests/app/xml-parser-tests/xml-parser-tests.ts b/tests/app/xml-parser-tests/xml-parser-tests.ts
index e1949ba1c..c14aa549b 100644
--- a/tests/app/xml-parser-tests/xml-parser-tests.ts
+++ b/tests/app/xml-parser-tests/xml-parser-tests.ts
@@ -144,7 +144,7 @@ export var test_XmlParser_IntegrationTest = function () {
};
export var test_XmlParser_DummyDocumentationTest = function () {
-
+
// >> xml-parser-snippet
var onEventCallback = function (event: xmlModule.ParserEvent) {
switch (event.eventType) {
@@ -216,4 +216,4 @@ export function test_MultiParserTemplate() {
const view: any = builder.parse(xml);
TKUnit.assertNotNull(view.items);
TKUnit.assertEqual(view.items.length, 1);
-}
\ No newline at end of file
+}
diff --git a/tests/app/xml-parser-tests/xml.expected b/tests/app/xml-parser-tests/xml.expected
index 45a144197..5cdb47fc4 100644
--- a/tests/app/xml-parser-tests/xml.expected
+++ b/tests/app/xml-parser-tests/xml.expected
@@ -1 +1 @@
-{"eventType":"StartElement","position":{"line":2,"column":1},"elementName":"DocumentElement","attributes":{"param":"value"}}{"eventType":"StartElement","position":{"line":3,"column":3},"elementName":"First.Element","attributes":{"some.attr":"some.value"}}{"eventType":"Text","position":{"line":3,"column":41},"data":"\n ¶ Some Text ®\n "}{"eventType":"EndElement","position":{"line":5,"column":3},"elementName":"First.Element"}{"eventType":"StartElement","position":{"line":7,"column":3},"elementName":"SecondElement","attributes":{"param2":"something"}}{"eventType":"Text","position":{"line":7,"column":37},"data":"\n Pre-Text "}{"eventType":"StartElement","position":{"line":8,"column":14},"elementName":"Inline"}{"eventType":"Text","position":{"line":8,"column":22},"data":"Inlined text"}{"eventType":"EndElement","position":{"line":8,"column":34},"elementName":"Inline"}{"eventType":"Text","position":{"line":8,"column":43},"data":" Post-text.\n "}{"eventType":"EndElement","position":{"line":9,"column":3},"elementName":"SecondElement"}{"eventType":"StartElement","position":{"line":10,"column":3},"elementName":"entities"}{"eventType":"Text","position":{"line":10,"column":13},"data":"Xml tags begin with \"<\" and end with \">\" Ampersand is & and apostrophe is '"}{"eventType":"EndElement","position":{"line":10,"column":123},"elementName":"entities"}{"eventType":"StartElement","position":{"line":11,"column":3},"elementName":"script"}{"eventType":"CDATA","position":{"line":12,"column":5},"data":"\nfunction sum(a,b)\n{\n return a+b;\n}\n"}{"eventType":"EndElement","position":{"line":18,"column":3},"elementName":"script"}{"eventType":"Comment","position":{"line":19,"column":3},"data":"\n Hello,\n I am a multi-line XML comment.\n"}{"eventType":"EndElement","position":{"line":23,"column":1},"elementName":"DocumentElement"}
\ No newline at end of file
+{"eventType":"StartElement","position":{"line":2,"column":1},"elementName":"DocumentElement","attributes":{"param":"value"}}{"eventType":"StartElement","position":{"line":3,"column":3},"elementName":"First.Element","attributes":{"some.attr":"some.value"}}{"eventType":"Text","position":{"line":3,"column":41},"data":"\n ¶ Some Text ®\n "}{"eventType":"EndElement","position":{"line":5,"column":3},"elementName":"First.Element"}{"eventType":"StartElement","position":{"line":7,"column":3},"elementName":"SecondElement","attributes":{"param2":"something"}}{"eventType":"Text","position":{"line":7,"column":37},"data":"\n Pre-Text "}{"eventType":"StartElement","position":{"line":8,"column":14},"elementName":"Inline"}{"eventType":"Text","position":{"line":8,"column":22},"data":"Inlined text"}{"eventType":"EndElement","position":{"line":8,"column":34},"elementName":"Inline"}{"eventType":"Text","position":{"line":8,"column":43},"data":" Post-text.\n "}{"eventType":"EndElement","position":{"line":9,"column":3},"elementName":"SecondElement"}{"eventType":"StartElement","position":{"line":10,"column":3},"elementName":"entities"}{"eventType":"Text","position":{"line":10,"column":13},"data":"Xml tags begin with \"<\" and end with \">\" Ampersand is & and apostrophe is '"}{"eventType":"EndElement","position":{"line":10,"column":123},"elementName":"entities"}{"eventType":"StartElement","position":{"line":11,"column":3},"elementName":"script"}{"eventType":"CDATA","position":{"line":12,"column":5},"data":"\nfunction sum(a,b)\n{\n return a+b;\n}\n"}{"eventType":"EndElement","position":{"line":18,"column":3},"elementName":"script"}{"eventType":"Comment","position":{"line":19,"column":3},"data":"\n Hello,\n I am a multi-line XML comment.\n"}{"eventType":"EndElement","position":{"line":23,"column":1},"elementName":"DocumentElement"}
diff --git a/tests/app/xml-parser-tests/xml.xml b/tests/app/xml-parser-tests/xml.xml
index 3b9a16b9a..93a55b018 100644
--- a/tests/app/xml-parser-tests/xml.xml
+++ b/tests/app/xml-parser-tests/xml.xml
@@ -20,4 +20,4 @@ function sum(a,b)
Hello,
I am a multi-line XML comment.
-->
-
\ No newline at end of file
+