From ebd20370f47773f08b69eb00d7df74e842863fd8 Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Mon, 21 Mar 2016 11:34:46 +0200 Subject: [PATCH] Disable custom transition test on Android 6.9 (API 23) http://stackoverflow.com/questions/33188485/resultindex-is-1-the-polygon-must-be-invalid-adter-addview --- apps/tests/navigation/transition-tests.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/apps/tests/navigation/transition-tests.ts b/apps/tests/navigation/transition-tests.ts index 229821bbd..2e01bce21 100644 --- a/apps/tests/navigation/transition-tests.ts +++ b/apps/tests/navigation/transition-tests.ts @@ -39,12 +39,18 @@ export var test_Transitions = function () { }); var transitions; + var testCustomTransition = true; if (platform.device.os === platform.platformNames.ios) { transitions = ["curl"]; } else { var _sdkVersion = parseInt(platform.device.sdkVersion); transitions = _sdkVersion >= 21 ? ["explode"] : []; + if (_sdkVersion === 23) { + // Apparently, there is some kind of Android 6.0 (API 23) bug when using ObjectAnimators + // http://stackoverflow.com/questions/33188485/resultindex-is-1-the-polygon-must-be-invalid-adter-addview + testCustomTransition = false; + } } transitions = transitions.concat(["fade", "flip", "slide"]); var durations = [undefined, 500]; @@ -68,9 +74,11 @@ export var test_Transitions = function () { } // Custom transition - var customTransitionModule = require("./custom-transition"); - var customTransition = new customTransitionModule.CustomTransition(); - _testTransition({ instance: customTransition }); + if (testCustomTransition) { + var customTransitionModule = require("./custom-transition"); + var customTransition = new customTransitionModule.CustomTransition(); + _testTransition({ instance: customTransition }); + } helper.goBack(); }