mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import * as helper from "../../ui-helper";
|
||||
import * as btnCounter from "./pages/button-counter";
|
||||
import * as TKUnit from "../../tk-unit";
|
||||
import { isIOS, isAndroid } from "@nativescript/core/platform";
|
||||
import { isIOS, isAndroid } from "@nativescript/core";
|
||||
|
||||
// Integration tests that asser sertain runtime behavior, lifecycle events atc.
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as button from "@nativescript/core/ui/button";
|
||||
import * as view from "@nativescript/core/ui/core/view";
|
||||
import { colorProperty, backgroundInternalProperty, fontInternalProperty } from "@nativescript/core";
|
||||
|
||||
export class Button extends button.Button {
|
||||
nativeBackgroundRedraws = 0;
|
||||
@@ -13,24 +13,24 @@ export class Button extends button.Button {
|
||||
this.style.on("colorChange", () => this.colorPropertyChangeCount++);
|
||||
}
|
||||
|
||||
[view.backgroundInternalProperty.setNative](value) {
|
||||
[backgroundInternalProperty.setNative](value) {
|
||||
this.backgroundInternalSetNativeCount++;
|
||||
|
||||
return super[view.backgroundInternalProperty.setNative](value);
|
||||
return super[backgroundInternalProperty.setNative](value);
|
||||
}
|
||||
[view.fontInternalProperty.setNative](value) {
|
||||
[fontInternalProperty.setNative](value) {
|
||||
this.fontInternalSetNativeCount++;
|
||||
|
||||
return super[view.fontInternalProperty.setNative](value);
|
||||
return super[fontInternalProperty.setNative](value);
|
||||
}
|
||||
_redrawNativeBackground(value: any): void {
|
||||
this.nativeBackgroundRedraws++;
|
||||
super._redrawNativeBackground(value);
|
||||
}
|
||||
[view.colorProperty.setNative](value) {
|
||||
[colorProperty.setNative](value) {
|
||||
this.colorSetNativeCount++;
|
||||
|
||||
return super[view.colorProperty.setNative](value);
|
||||
return super[colorProperty.setNative](value);
|
||||
}
|
||||
}
|
||||
Button.prototype.recycleNativeView = "never";
|
||||
|
||||
Reference in New Issue
Block a user