diff --git a/apps/tests/ui/view/view-tests-common.ts b/apps/tests/ui/view/view-tests-common.ts index 756442bd5..74134f0b0 100644 --- a/apps/tests/ui/view/view-tests-common.ts +++ b/apps/tests/ui/view/view-tests-common.ts @@ -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) { TKUnit.assertEqual(lbl.color.hex, expectedColor); diff --git a/ui/core/view-common.ts b/ui/core/view-common.ts index 19c6b76c5..0306dc9c9 100644 --- a/ui/core/view-common.ts +++ b/ui/core/view-common.ts @@ -923,7 +923,7 @@ export class View extends proxy.ProxyObject implements definition.View { return false; } - public setStyle(style: string): void { + public setInlineStyle(style: string): void { if (!types.isString(style)) { throw new Error("Parameter should be valid CSS string!"); } diff --git a/ui/core/view.d.ts b/ui/core/view.d.ts index 102d31440..b2eab2809 100644 --- a/ui/core/view.d.ts +++ b/ui/core/view.d.ts @@ -360,7 +360,7 @@ declare module "ui/core/view" { * Sets in-line CSS string as style. * @param style - In-line CSS string. */ - public setStyle(style: string) : void; + public setInlineStyle(style: string) : void; public getGestureObservers(type: gestures.GestureTypes): Array;