Another test fix

This commit is contained in:
vakrilov
2015-07-06 17:29:20 +03:00
parent 32c2ad1e6d
commit 74c19099b5

View File

@ -25,6 +25,7 @@ import textBase = require("ui/text-base");
import enums = require("ui/enums"); import enums = require("ui/enums");
import labelTestsNative = require("./label-tests-native"); import labelTestsNative = require("./label-tests-native");
import fs = require("file-system"); import fs = require("file-system");
import background = require("ui/styling/background");
export class LabelTest extends testModule.UITest<LabelModule.Label> { export class LabelTest extends testModule.UITest<LabelModule.Label> {
@ -223,7 +224,8 @@ export class LabelTest extends testModule.UITest<LabelModule.Label> {
normalColor = actualColors.getDefaultColor() normalColor = actualColors.getDefaultColor()
TKUnit.assert(normalColor, "Expected: " + expColor + ", Actual: " + normalColor); TKUnit.assert(normalColor, "Expected: " + expColor + ", Actual: " + normalColor);
actualBackgroundColor = (<any>testLabel.android.getBackground()).backgroundColor; var bkg = (<background.ad.BorderDrawable>testLabel.android.getBackground());
actualBackgroundColor = bkg.background.color.android;
expBackgroundColor = android.graphics.Color.parseColor(backgroundColor); expBackgroundColor = android.graphics.Color.parseColor(backgroundColor);
TKUnit.assertEqual(actualBackgroundColor, expBackgroundColor); TKUnit.assertEqual(actualBackgroundColor, expBackgroundColor);
} }