mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 13:51:27 +08:00
24 lines
812 B
TypeScript
24 lines
812 B
TypeScript
import commonTests = require("./view-tests-common");
|
|
import view = require("ui/core/view");
|
|
|
|
global.moduleMerge(commonTests, exports);
|
|
|
|
export function getNativeBorderWidth(v: view.View): number {
|
|
return (<UIView>v.ios).layer.borderWidth;
|
|
}
|
|
|
|
export function getNativeCornerRadius(v: view.View): number {
|
|
return (<UIView>v.ios).layer.cornerRadius;
|
|
}
|
|
|
|
export function checkNativeBorderColor(v: view.View): boolean {
|
|
return v.borderColor && (<UIView>v.ios).layer.borderColor === v.borderColor.ios.CGColor;
|
|
}
|
|
|
|
export function checkNativeBackgroundColor(v: view.View): boolean {
|
|
return v.backgroundColor && (<UIView>v.ios).backgroundColor.isEqual(v.backgroundColor.ios);
|
|
}
|
|
|
|
export function checkNativeBackgroundImage(v: view.View): boolean {
|
|
return (<UIView>v.ios).backgroundColor !== undefined;
|
|
} |