From c47b53847e90fb0e1667dcf05ca029dbf5cc8186 Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Mon, 2 Nov 2015 08:50:21 +0200 Subject: [PATCH] test added --- .../activity-indicator-tests.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/apps/tests/ui/activity-indicator/activity-indicator-tests.ts b/apps/tests/ui/activity-indicator/activity-indicator-tests.ts index 60bf47216..ced172153 100644 --- a/apps/tests/ui/activity-indicator/activity-indicator-tests.ts +++ b/apps/tests/ui/activity-indicator/activity-indicator-tests.ts @@ -2,6 +2,8 @@ import helper = require("../helper"); import viewModule = require("ui/core/view"); import imageModule = require("ui/image"); +import platform = require("platform"); +import color = require("color"); //  // # ActivityIndicator @@ -55,6 +57,20 @@ export function test_set_TNS_value_updates_native_value() { helper.buildUIAndRunTest(indicator, testAction); } +// Uncomment this when find way to check android Drawable color set by setColorFilter() method. +if (platform.device.os === platform.platformNames.ios) { + exports.test_set_color = function () { + var ai = new activityIndicatorModule.ActivityIndicator(); + ai.color = new color.Color("red"); + + function testAction(views: Array) { + TKUnit.assertEqual(ai.color.ios.CGColor, ai.ios.color.CGColor, "ai.color"); + }; + + helper.buildUIAndRunTest(ai, testAction); + } +} + // This method is only for the code snippet /* tslint:disable:no-unused-variable */ function binding_busy_to_image() {