mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
test improved
This commit is contained in:
@ -622,8 +622,8 @@ export var testSetStyle = function () {
|
|||||||
lbl.setStyle(`color: ${expectedColor};background-color: ${expectedBackgroundColor};`);
|
lbl.setStyle(`color: ${expectedColor};background-color: ${expectedBackgroundColor};`);
|
||||||
|
|
||||||
helper.buildUIAndRunTest(lbl, function (views: Array<viewModule.View>) {
|
helper.buildUIAndRunTest(lbl, function (views: Array<viewModule.View>) {
|
||||||
TKUnit.assert(lbl.color.hex === expectedColor, "Actual: " + lbl.color.hex + "; Expected: " + expectedColor);
|
TKUnit.assertEqual(lbl.color.hex, expectedColor);
|
||||||
TKUnit.assert(lbl.backgroundColor.hex === expectedBackgroundColor, "Actual: " + lbl.backgroundColor.hex + "; Expected: " + expectedBackgroundColor);
|
TKUnit.assertEqual(lbl.backgroundColor.hex, expectedBackgroundColor);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user