mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
Another test fix
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user