mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
npm scripts for typechecking public .d.ts-es and running tslint (#2934)
* npm scripts for typechecking public .d.ts-es and running tslint * Update test.ts
This commit is contained in:
committed by
Vladimir Enchev
parent
fd23197851
commit
05cd636fc8
@@ -84,8 +84,6 @@ export var testLocation = function (done) {
|
||||
|
||||
//TKUnit.waitUntilReady(isReady, 10);
|
||||
|
||||
|
||||
|
||||
//TKUnit.assert(true === locationReceived, locationReceived);
|
||||
};
|
||||
|
||||
|
||||
@@ -36,4 +36,3 @@ export function buttonTap(args: observable.EventData) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@ export function testIsIOSandIsAndroid() {
|
||||
TKUnit.assertTrue(!!android, "isAndroid is true but common 'android' package is not available.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
1
tests/app/ui/button/button-tests-native.d.ts
vendored
1
tests/app/ui/button/button-tests-native.d.ts
vendored
@@ -9,4 +9,3 @@ export declare function getNativeColor(button: buttonModule.Button): colorModule
|
||||
export declare function getNativeBackgroundColor(button: buttonModule.Button): colorModule.Color;
|
||||
export declare function getNativeTextAlignment(button: buttonModule.Button): string;
|
||||
export declare function performNativeClick(button: buttonModule.Button): void;
|
||||
|
||||
|
||||
@@ -8,5 +8,3 @@ export function selectNativeItem(listPicker: listPickerModule.ListPicker, index:
|
||||
listPicker.ios.selectRowInComponentAnimated(index, 0, false);
|
||||
(<UIPickerViewDelegate>(<any>listPicker)._delegate).pickerViewDidSelectRowInComponent(listPicker.ios, index, 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -800,7 +800,6 @@ export class ListViewTest extends testModule.UITest<listViewModule.ListView> {
|
||||
TKUnit.assertEqual(templateKey1, "green", "itemTemplateSelector result for second item");
|
||||
}
|
||||
|
||||
|
||||
public test_ItemTemplateSelector_IsCorrectlyUsedAsAFunction() {
|
||||
let listView = this.testView;
|
||||
listView.itemTemplateSelector = selectItemTemplate;
|
||||
|
||||
@@ -453,4 +453,3 @@ function getChildAt(repeater: repeaterModule.Repeater, index: number): viewModul
|
||||
function getChildAtText(repeater: repeaterModule.Repeater, index: number): string {
|
||||
return (<labelModule.Label>getChildAt(repeater, index)).text + "";
|
||||
}
|
||||
|
||||
|
||||
@@ -8,4 +8,3 @@ export function getNativeHintColor(searchBar: SearchBar): Color {
|
||||
export function getNativeFontSize(searchBar: SearchBar): number {
|
||||
return (<any>searchBar)._textField ? (<any>searchBar)._textField.font.pointSize : undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user