You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/08/07 22:04:14 UTC

[1/5] git commit: CB-6965. Port notification tests to test-framework

Repository: cordova-plugin-dialogs
Updated Branches:
  refs/heads/master eecde889d -> 423ee171f


CB-6965. Port notification tests to test-framework

Ported notification test from mobilespec to the new test-framework in
jasmine 2.0
Added test folder.
Added tests.js file inside the test folder.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/d00470f7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/d00470f7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/d00470f7

Branch: refs/heads/master
Commit: d00470f79a926ab11801cfec12eb38db28ea9ba7
Parents: fd874c4
Author: javierbb31 <ja...@gmail.com>
Authored: Mon Jun 30 15:56:43 2014 -0500
Committer: javierbb31 <ja...@gmail.com>
Committed: Mon Jun 30 15:56:43 2014 -0500

----------------------------------------------------------------------
 test/tests.js | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/d00470f7/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
new file mode 100644
index 0000000..a3df525
--- /dev/null
+++ b/test/tests.js
@@ -0,0 +1,48 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+exports.defineAutoTests = function() {
+    describe('Notification (navigator.notification)', function () {
+        it("should exist", function() {
+                    expect(navigator.notification).toBeDefined();
+        });
+
+        it("should contain a beep function", function() {
+            expect(typeof navigator.notification.beep).toBeDefined();
+            expect(typeof navigator.notification.beep).toBe("function");
+        });
+
+        it("should contain an alert function", function() {
+            expect(typeof navigator.notification.alert).toBeDefined();
+            expect(typeof navigator.notification.alert).toBe("function");
+        });
+
+        it("should contain a confirm function", function() {
+            expect(typeof navigator.notification.confirm).toBeDefined();
+            expect(typeof navigator.notification.confirm).toBe("function");
+        });
+        
+        it("should contain a prompt function", function() {
+            expect(typeof navigator.notification.prompt).toBeDefined();
+            expect(typeof navigator.notification.prompt).toBe("function");
+        });
+    });
+};


[3/5] git commit: CB-6965 Added manual tests

Posted by pu...@apache.org.
CB-6965 Added manual tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/1af76d83
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/1af76d83
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/1af76d83

Branch: refs/heads/master
Commit: 1af76d830ae37e748fdaa039e6b8d3b76a57754e
Parents: 25c1e2d
Author: Staci Cooper <sm...@us.ibm.com>
Authored: Fri Jul 18 14:13:51 2014 -0400
Committer: Staci Cooper <sm...@us.ibm.com>
Committed: Fri Jul 18 14:13:51 2014 -0400

----------------------------------------------------------------------
 test/tests.js | 138 +++++++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 130 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/1af76d83/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
index a3df525..99ddf6e 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -19,30 +19,152 @@
  *
 */
 
-exports.defineAutoTests = function() {
+exports.defineAutoTests = function () {
     describe('Notification (navigator.notification)', function () {
-        it("should exist", function() {
-                    expect(navigator.notification).toBeDefined();
+        it("should exist", function () {
+            expect(navigator.notification).toBeDefined();
         });
 
-        it("should contain a beep function", function() {
+        it("should contain a beep function", function () {
             expect(typeof navigator.notification.beep).toBeDefined();
             expect(typeof navigator.notification.beep).toBe("function");
         });
 
-        it("should contain an alert function", function() {
+        it("should contain an alert function", function () {
             expect(typeof navigator.notification.alert).toBeDefined();
             expect(typeof navigator.notification.alert).toBe("function");
         });
 
-        it("should contain a confirm function", function() {
+        it("should contain a confirm function", function () {
             expect(typeof navigator.notification.confirm).toBeDefined();
             expect(typeof navigator.notification.confirm).toBe("function");
         });
-        
-        it("should contain a prompt function", function() {
+
+        it("should contain a prompt function", function () {
             expect(typeof navigator.notification.prompt).toBeDefined();
             expect(typeof navigator.notification.prompt).toBe("function");
         });
     });
 };
+
+/******************************************************************************/
+/******************************************************************************/
+/******************************************************************************/
+
+exports.defineManualTests = function (contentEl, createActionButton) {
+    var logMessage = function (message) {
+        var log = document.getElementById('info');
+        var logLine = document.createElement('div');
+        logLine.innerHTML = message;
+        log.appendChild(logLine);
+    }
+
+    var clearLog = function () {
+        var log = document.getElementById('info');
+        log.innerHTML = '';
+    }
+
+    var beep = function () {
+        console.log("beep()");
+        navigator.notification.beep(3);
+    };
+
+    var alertDialog = function (message, title, button) {
+        console.log("alertDialog()");
+        navigator.notification.alert(message,
+            function () {
+                console.log("Alert dismissed.");
+            },
+            title, button);
+        console.log("After alert");
+    };
+
+    var confirmDialogA = function (message, title, buttons) {
+        clearLog();
+        navigator.notification.confirm(message,
+            function (r) {
+                if (r === 0) {
+                    logMessage("Dismissed dialog without making a selection.");
+                    console.log("Dismissed dialog without making a selection.");
+                } else {
+                    console.log("You selected " + r);
+                    logMessage("You selected " + (buttons.split(","))[r - 1]);
+                }
+            },
+            title,
+            buttons);
+    };
+
+    var confirmDialogB = function (message, title, buttons) {
+        clearLog();
+        navigator.notification.confirm(message,
+            function (r) {
+                if (r === 0) {
+                    logMessage("Dismissed dialog without making a selection.");
+                    console.log("Dismissed dialog without making a selection.");
+                } else {
+                    console.log("You selected " + r);
+                    logMessage("You selected " + buttons[r - 1]);
+                }
+            },
+            title,
+            buttons);
+    };
+
+    var promptDialog = function (message, title, buttons) {
+        clearLog();
+        navigator.notification.prompt(message,
+            function (r) {
+                if (r && r.buttonIndex === 0) {
+                    var msg = "Dismissed dialog";
+                    if (r.input1) {
+                        msg += " with input: " + r.input1
+                    }
+                    logMessage(msg);
+                    console.log(msg);
+                } else {
+                    console.log("You selected " + r.buttonIndex + " and entered: " + r.input1);
+                    logMessage("You selected " + buttons[r.buttonIndex - 1] + " and entered: " + r.input1);
+                }
+            },
+            title,
+            buttons);
+    };
+
+    /******************************************************************************/
+
+    contentEl.innerHTML = '<div id="info"></div>' +
+        '<div id="actions"></div>';
+
+    createActionButton('Beep', function () {
+        beep();
+    }, 'actions');
+
+    createActionButton('Alert Dialog', function () {
+        alertDialog('You pressed alert.', 'Alert Dialog', 'Continue');
+    }, 'actions');
+
+    createActionButton('Confirm Dialog - Deprecated', function () {
+        confirmDialogA('You pressed confirm.', 'Confirm Dialog', 'Yes,No,Maybe');
+    }, 'actions');
+
+    createActionButton('Confirm Dialog', function () {
+        confirmDialogB('You pressed confirm.', 'Confirm Dialog', ['Yes', 'No', 'Maybe, Not Sure']);
+    }, 'actions');
+
+    createActionButton('Prompt Dialog', function () {
+        promptDialog('You pressed prompt.', 'Prompt Dialog', ['Yes', 'No', 'Maybe, Not Sure']);
+    }, 'actions');
+
+    createActionButton('Built-in Alert Dialog', function () {
+        alert('You pressed alert');
+    }, 'actions');
+
+    createActionButton('Built-in Confirm Dialog', function () {
+        confirm('You selected confirm');
+    }, 'actions');
+
+    createActionButton('Built-in Prompt Dialog', function () {
+        prompt('This is a prompt', 'Default value');
+    }, 'actions');
+};


[5/5] git commit: Merge branch 'CB-6965' of https://github.com/stacic/cordova-plugin-dialogs

Posted by pu...@apache.org.
Merge branch 'CB-6965' of https://github.com/stacic/cordova-plugin-dialogs


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/423ee171
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/423ee171
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/423ee171

Branch: refs/heads/master
Commit: 423ee171fff23d6baeeadea3f75b11c20c1bfb3e
Parents: eecde88 0527b77
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Thu Aug 7 13:03:58 2014 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Thu Aug 7 13:03:58 2014 -0700

----------------------------------------------------------------------
 tests/plugin.xml |  29 +++++++++
 tests/tests.js   | 170 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 199 insertions(+)
----------------------------------------------------------------------



[4/5] git commit: Renamed test dir, added nested plugin.xml

Posted by pu...@apache.org.
Renamed test dir, added nested plugin.xml


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/0527b774
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/0527b774
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/0527b774

Branch: refs/heads/master
Commit: 0527b774af03edfdaa41dea5fa12a39f927f33d1
Parents: 1af76d8
Author: Staci Cooper <sm...@us.ibm.com>
Authored: Fri Aug 1 16:33:07 2014 -0400
Committer: Staci Cooper <sm...@us.ibm.com>
Committed: Fri Aug 1 16:33:07 2014 -0400

----------------------------------------------------------------------
 test/tests.js    | 170 --------------------------------------------------
 tests/plugin.xml |  29 +++++++++
 tests/tests.js   | 170 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 199 insertions(+), 170 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/0527b774/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
deleted file mode 100644
index 99ddf6e..0000000
--- a/test/tests.js
+++ /dev/null
@@ -1,170 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-exports.defineAutoTests = function () {
-    describe('Notification (navigator.notification)', function () {
-        it("should exist", function () {
-            expect(navigator.notification).toBeDefined();
-        });
-
-        it("should contain a beep function", function () {
-            expect(typeof navigator.notification.beep).toBeDefined();
-            expect(typeof navigator.notification.beep).toBe("function");
-        });
-
-        it("should contain an alert function", function () {
-            expect(typeof navigator.notification.alert).toBeDefined();
-            expect(typeof navigator.notification.alert).toBe("function");
-        });
-
-        it("should contain a confirm function", function () {
-            expect(typeof navigator.notification.confirm).toBeDefined();
-            expect(typeof navigator.notification.confirm).toBe("function");
-        });
-
-        it("should contain a prompt function", function () {
-            expect(typeof navigator.notification.prompt).toBeDefined();
-            expect(typeof navigator.notification.prompt).toBe("function");
-        });
-    });
-};
-
-/******************************************************************************/
-/******************************************************************************/
-/******************************************************************************/
-
-exports.defineManualTests = function (contentEl, createActionButton) {
-    var logMessage = function (message) {
-        var log = document.getElementById('info');
-        var logLine = document.createElement('div');
-        logLine.innerHTML = message;
-        log.appendChild(logLine);
-    }
-
-    var clearLog = function () {
-        var log = document.getElementById('info');
-        log.innerHTML = '';
-    }
-
-    var beep = function () {
-        console.log("beep()");
-        navigator.notification.beep(3);
-    };
-
-    var alertDialog = function (message, title, button) {
-        console.log("alertDialog()");
-        navigator.notification.alert(message,
-            function () {
-                console.log("Alert dismissed.");
-            },
-            title, button);
-        console.log("After alert");
-    };
-
-    var confirmDialogA = function (message, title, buttons) {
-        clearLog();
-        navigator.notification.confirm(message,
-            function (r) {
-                if (r === 0) {
-                    logMessage("Dismissed dialog without making a selection.");
-                    console.log("Dismissed dialog without making a selection.");
-                } else {
-                    console.log("You selected " + r);
-                    logMessage("You selected " + (buttons.split(","))[r - 1]);
-                }
-            },
-            title,
-            buttons);
-    };
-
-    var confirmDialogB = function (message, title, buttons) {
-        clearLog();
-        navigator.notification.confirm(message,
-            function (r) {
-                if (r === 0) {
-                    logMessage("Dismissed dialog without making a selection.");
-                    console.log("Dismissed dialog without making a selection.");
-                } else {
-                    console.log("You selected " + r);
-                    logMessage("You selected " + buttons[r - 1]);
-                }
-            },
-            title,
-            buttons);
-    };
-
-    var promptDialog = function (message, title, buttons) {
-        clearLog();
-        navigator.notification.prompt(message,
-            function (r) {
-                if (r && r.buttonIndex === 0) {
-                    var msg = "Dismissed dialog";
-                    if (r.input1) {
-                        msg += " with input: " + r.input1
-                    }
-                    logMessage(msg);
-                    console.log(msg);
-                } else {
-                    console.log("You selected " + r.buttonIndex + " and entered: " + r.input1);
-                    logMessage("You selected " + buttons[r.buttonIndex - 1] + " and entered: " + r.input1);
-                }
-            },
-            title,
-            buttons);
-    };
-
-    /******************************************************************************/
-
-    contentEl.innerHTML = '<div id="info"></div>' +
-        '<div id="actions"></div>';
-
-    createActionButton('Beep', function () {
-        beep();
-    }, 'actions');
-
-    createActionButton('Alert Dialog', function () {
-        alertDialog('You pressed alert.', 'Alert Dialog', 'Continue');
-    }, 'actions');
-
-    createActionButton('Confirm Dialog - Deprecated', function () {
-        confirmDialogA('You pressed confirm.', 'Confirm Dialog', 'Yes,No,Maybe');
-    }, 'actions');
-
-    createActionButton('Confirm Dialog', function () {
-        confirmDialogB('You pressed confirm.', 'Confirm Dialog', ['Yes', 'No', 'Maybe, Not Sure']);
-    }, 'actions');
-
-    createActionButton('Prompt Dialog', function () {
-        promptDialog('You pressed prompt.', 'Prompt Dialog', ['Yes', 'No', 'Maybe, Not Sure']);
-    }, 'actions');
-
-    createActionButton('Built-in Alert Dialog', function () {
-        alert('You pressed alert');
-    }, 'actions');
-
-    createActionButton('Built-in Confirm Dialog', function () {
-        confirm('You selected confirm');
-    }, 'actions');
-
-    createActionButton('Built-in Prompt Dialog', function () {
-        prompt('This is a prompt', 'Default value');
-    }, 'actions');
-};

http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/0527b774/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
new file mode 100644
index 0000000..16f8b46
--- /dev/null
+++ b/tests/plugin.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
+    id="org.apache.cordova.dialogs.tests"
+    version="0.2.9-dev">
+    <name>Cordova Notification Plugin Tests</name>
+    <license>Apache 2.0</license>
+
+    <js-module src="tests.js" name="tests">
+    </js-module>
+</plugin>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/0527b774/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
new file mode 100644
index 0000000..99ddf6e
--- /dev/null
+++ b/tests/tests.js
@@ -0,0 +1,170 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+exports.defineAutoTests = function () {
+    describe('Notification (navigator.notification)', function () {
+        it("should exist", function () {
+            expect(navigator.notification).toBeDefined();
+        });
+
+        it("should contain a beep function", function () {
+            expect(typeof navigator.notification.beep).toBeDefined();
+            expect(typeof navigator.notification.beep).toBe("function");
+        });
+
+        it("should contain an alert function", function () {
+            expect(typeof navigator.notification.alert).toBeDefined();
+            expect(typeof navigator.notification.alert).toBe("function");
+        });
+
+        it("should contain a confirm function", function () {
+            expect(typeof navigator.notification.confirm).toBeDefined();
+            expect(typeof navigator.notification.confirm).toBe("function");
+        });
+
+        it("should contain a prompt function", function () {
+            expect(typeof navigator.notification.prompt).toBeDefined();
+            expect(typeof navigator.notification.prompt).toBe("function");
+        });
+    });
+};
+
+/******************************************************************************/
+/******************************************************************************/
+/******************************************************************************/
+
+exports.defineManualTests = function (contentEl, createActionButton) {
+    var logMessage = function (message) {
+        var log = document.getElementById('info');
+        var logLine = document.createElement('div');
+        logLine.innerHTML = message;
+        log.appendChild(logLine);
+    }
+
+    var clearLog = function () {
+        var log = document.getElementById('info');
+        log.innerHTML = '';
+    }
+
+    var beep = function () {
+        console.log("beep()");
+        navigator.notification.beep(3);
+    };
+
+    var alertDialog = function (message, title, button) {
+        console.log("alertDialog()");
+        navigator.notification.alert(message,
+            function () {
+                console.log("Alert dismissed.");
+            },
+            title, button);
+        console.log("After alert");
+    };
+
+    var confirmDialogA = function (message, title, buttons) {
+        clearLog();
+        navigator.notification.confirm(message,
+            function (r) {
+                if (r === 0) {
+                    logMessage("Dismissed dialog without making a selection.");
+                    console.log("Dismissed dialog without making a selection.");
+                } else {
+                    console.log("You selected " + r);
+                    logMessage("You selected " + (buttons.split(","))[r - 1]);
+                }
+            },
+            title,
+            buttons);
+    };
+
+    var confirmDialogB = function (message, title, buttons) {
+        clearLog();
+        navigator.notification.confirm(message,
+            function (r) {
+                if (r === 0) {
+                    logMessage("Dismissed dialog without making a selection.");
+                    console.log("Dismissed dialog without making a selection.");
+                } else {
+                    console.log("You selected " + r);
+                    logMessage("You selected " + buttons[r - 1]);
+                }
+            },
+            title,
+            buttons);
+    };
+
+    var promptDialog = function (message, title, buttons) {
+        clearLog();
+        navigator.notification.prompt(message,
+            function (r) {
+                if (r && r.buttonIndex === 0) {
+                    var msg = "Dismissed dialog";
+                    if (r.input1) {
+                        msg += " with input: " + r.input1
+                    }
+                    logMessage(msg);
+                    console.log(msg);
+                } else {
+                    console.log("You selected " + r.buttonIndex + " and entered: " + r.input1);
+                    logMessage("You selected " + buttons[r.buttonIndex - 1] + " and entered: " + r.input1);
+                }
+            },
+            title,
+            buttons);
+    };
+
+    /******************************************************************************/
+
+    contentEl.innerHTML = '<div id="info"></div>' +
+        '<div id="actions"></div>';
+
+    createActionButton('Beep', function () {
+        beep();
+    }, 'actions');
+
+    createActionButton('Alert Dialog', function () {
+        alertDialog('You pressed alert.', 'Alert Dialog', 'Continue');
+    }, 'actions');
+
+    createActionButton('Confirm Dialog - Deprecated', function () {
+        confirmDialogA('You pressed confirm.', 'Confirm Dialog', 'Yes,No,Maybe');
+    }, 'actions');
+
+    createActionButton('Confirm Dialog', function () {
+        confirmDialogB('You pressed confirm.', 'Confirm Dialog', ['Yes', 'No', 'Maybe, Not Sure']);
+    }, 'actions');
+
+    createActionButton('Prompt Dialog', function () {
+        promptDialog('You pressed prompt.', 'Prompt Dialog', ['Yes', 'No', 'Maybe, Not Sure']);
+    }, 'actions');
+
+    createActionButton('Built-in Alert Dialog', function () {
+        alert('You pressed alert');
+    }, 'actions');
+
+    createActionButton('Built-in Confirm Dialog', function () {
+        confirm('You selected confirm');
+    }, 'actions');
+
+    createActionButton('Built-in Prompt Dialog', function () {
+        prompt('This is a prompt', 'Default value');
+    }, 'actions');
+};


[2/5] git commit: Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs into HEAD

Posted by pu...@apache.org.
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs into HEAD


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/25c1e2dc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/25c1e2dc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/25c1e2dc

Branch: refs/heads/master
Commit: 25c1e2dc665f363a218109e9265afee50f938c92
Parents: d00470f dcd0e05
Author: Staci Cooper <sm...@us.ibm.com>
Authored: Fri Jul 18 14:12:56 2014 -0400
Committer: Staci Cooper <sm...@us.ibm.com>
Committed: Fri Jul 18 14:12:56 2014 -0400

----------------------------------------------------------------------
 doc/de/index.md               | 247 +++++++++++++++++++++++++++++++++++++
 doc/es/index.md               | 247 +++++++++++++++++++++++++++++++++++++
 doc/fr/index.md               | 247 +++++++++++++++++++++++++++++++++++++
 doc/it/index.md               | 247 +++++++++++++++++++++++++++++++++++++
 doc/ja/index.md               | 247 +++++++++++++++++++++++++++++++++++++
 doc/ko/index.md               | 247 +++++++++++++++++++++++++++++++++++++
 doc/pl/index.md               | 247 +++++++++++++++++++++++++++++++++++++
 doc/ru/index.md               | 247 +++++++++++++++++++++++++++++++++++++
 doc/zh/index.md               | 247 +++++++++++++++++++++++++++++++++++++
 src/android/Notification.java |   8 +-
 www/notification.js           |   3 +-
 11 files changed, 2229 insertions(+), 5 deletions(-)
----------------------------------------------------------------------