mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
setStyle renamed to setInlineStyle
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user