From ad8ce2c95d6e518b8325cc75dc399255c33bf2df Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Fri, 21 Jun 2019 15:35:27 +0300 Subject: [PATCH] tests(ui-tests-app): update examples (#7387) * refactor(ui-tests-app): tabmore example * fix(ui-tests-app): web-view query example * fix(ui-tests-app): misspelled img src path * feat(image-source): add set rotationAngle for iOS Compatibility with Android. --- e2e/ui-tests-app/app/css/test-page.css | 3 --- .../app/tab-view/tab-view-more-page.css | 3 +++ .../app/tab-view/tab-view-more-page.xml | 14 +++++++------- e2e/ui-tests-app/app/web-view/query-params-page.ts | 6 +++--- .../app/web-view/web-view-test-page.xml | 8 ++++---- tns-core-modules/image-source/image-source.ios.ts | 4 ++++ 6 files changed, 21 insertions(+), 17 deletions(-) delete mode 100644 e2e/ui-tests-app/app/css/test-page.css create mode 100644 e2e/ui-tests-app/app/tab-view/tab-view-more-page.css diff --git a/e2e/ui-tests-app/app/css/test-page.css b/e2e/ui-tests-app/app/css/test-page.css deleted file mode 100644 index fc4faec03..000000000 --- a/e2e/ui-tests-app/app/css/test-page.css +++ /dev/null @@ -1,3 +0,0 @@ -TabView{ - font-size:10; -} \ No newline at end of file diff --git a/e2e/ui-tests-app/app/tab-view/tab-view-more-page.css b/e2e/ui-tests-app/app/tab-view/tab-view-more-page.css new file mode 100644 index 000000000..134ca43e2 --- /dev/null +++ b/e2e/ui-tests-app/app/tab-view/tab-view-more-page.css @@ -0,0 +1,3 @@ +TabView { + font-size: 10; +} diff --git a/e2e/ui-tests-app/app/tab-view/tab-view-more-page.xml b/e2e/ui-tests-app/app/tab-view/tab-view-more-page.xml index 40047026e..c8f08cd59 100644 --- a/e2e/ui-tests-app/app/tab-view/tab-view-more-page.xml +++ b/e2e/ui-tests-app/app/tab-view/tab-view-more-page.xml @@ -1,39 +1,39 @@  - + - - - - - - diff --git a/e2e/ui-tests-app/app/web-view/query-params-page.ts b/e2e/ui-tests-app/app/web-view/query-params-page.ts index a6d4e5f08..d58140163 100644 --- a/e2e/ui-tests-app/app/web-view/query-params-page.ts +++ b/e2e/ui-tests-app/app/web-view/query-params-page.ts @@ -7,8 +7,8 @@ export function webViewLoaded(args) { } const relUrl = "~/web-view/query.html" + "?foo=bar&urlType=relative"; -const absoluteUrl = `${fs.knownFolders.currentApp().path}/ui-tests-app/web-view/query.html` + "?foo=bar&urlType=absolute"; -const fileUrl = `file:///${fs.knownFolders.currentApp().path}/ui-tests-app/web-view/query.html` + "?foo=bar&urlType=filePrefix"; +const absoluteUrl = `${fs.knownFolders.currentApp().path}/web-view/query.html` + "?foo=bar&urlType=absolute"; +const fileUrl = `file:///${fs.knownFolders.currentApp().path}/web-view/query.html` + "?foo=bar&urlType=filePrefix"; const htmlString = ` Test Page @@ -35,4 +35,4 @@ export function loadString() { function setSrc(src) { console.log("Setting src to: " + src); webView.src = src; -} \ No newline at end of file +} diff --git a/e2e/ui-tests-app/app/web-view/web-view-test-page.xml b/e2e/ui-tests-app/app/web-view/web-view-test-page.xml index 7e6a3e97b..919474df4 100644 --- a/e2e/ui-tests-app/app/web-view/web-view-test-page.xml +++ b/e2e/ui-tests-app/app/web-view/web-view-test-page.xml @@ -1,15 +1,15 @@ - + - - + + - + diff --git a/tns-core-modules/image-source/image-source.ios.ts b/tns-core-modules/image-source/image-source.ios.ts index b7ff6531b..44eb86f90 100644 --- a/tns-core-modules/image-source/image-source.ios.ts +++ b/tns-core-modules/image-source/image-source.ios.ts @@ -180,6 +180,10 @@ export class ImageSource implements ImageSourceDefinition { get rotationAngle(): number { return NaN; } + + set rotationAngle(_value: number) { + // compatibility with Android + } } function getFileName(path: string): string {