changed Array<string> to string[], and added test

This commit is contained in:
Christiaan Rakowski
2013-10-05 17:55:17 +02:00
parent 688387ff35
commit 2374fc4589
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -655,6 +655,12 @@ function test_notification() {
onConfirm,
'Game Over',
'Restart,Exit'
);
navigator.notification.confirm(
'You are the winner!',
onConfirm,
'Game Over',
['Restart','Exit']
);
navigator.notification.beep(2);
navigator.notification.vibrate(2500);
+1 -1
View File
@@ -478,7 +478,7 @@ declare var Media: {
interface Notification {
alert(message: string, alertCallback: Function, title?: string, buttonName?: string): void;
confirm(message: string, confirmCallback: Function, title?: string, buttonLabels?: string): void;
confirm(message: string, confirmCallback: Function, title?: string, buttonLabels?: Array<string>): void;
confirm(message: string, confirmCallback: Function, title?: string, buttonLabels?: string[]): void;
beep(times: number): void;
vibrate(milliseconds: number): void;
}