chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-06 14:25:11 -07:00
parent 94cf5c4706
commit 6336eac4b5
477 changed files with 59087 additions and 74961 deletions

View File

@@ -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.

View File

@@ -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";