setStyle renamed to setInlineStyle

This commit is contained in:
Vladimir Enchev
2015-08-28 11:18:25 +03:00
parent 035e381673
commit 0aec988251
3 changed files with 4 additions and 4 deletions

View File

@@ -613,13 +613,13 @@ export var testIsVisible = function () {
});
}
export var testSetStyle = function () {
export var testSetInlineStyle = function () {
var lbl = new label.Label();
var expectedColor = "#ff0000";
var expectedBackgroundColor = "#ff0000";
lbl.setStyle(`color: ${expectedColor};background-color: ${expectedBackgroundColor};`);
lbl.setInlineStyle(`color: ${expectedColor};background-color: ${expectedBackgroundColor};`);
helper.buildUIAndRunTest(lbl, function (views: Array<viewModule.View>) {
TKUnit.assertEqual(lbl.color.hex, expectedColor);