incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject spec commit: Added test for volume buttons
Date Mon, 11 Jun 2012 20:45:57 GMT
Updated Branches:
  refs/heads/volumebtns [created] 5c512f2a3


Added test for volume buttons


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/commit/5c512f2a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/tree/5c512f2a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/diff/5c512f2a

Branch: refs/heads/volumebtns
Commit: 5c512f2a3ba003b49fe3ad19039a1d20368c8cbf
Parents: 20ce78e
Author: Joe Bowser <bowserj@apache.org>
Authored: Fri Jun 8 17:18:00 2012 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Fri Jun 8 17:18:00 2012 -0700

----------------------------------------------------------------------
 events/index.html |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/5c512f2a/events/index.html
----------------------------------------------------------------------
diff --git a/events/index.html b/events/index.html
index 2c7e8ba..104e433 100755
--- a/events/index.html
+++ b/events/index.html
@@ -33,6 +33,12 @@
     function interceptOffline() {
       eventOutput("Offline event intercepted");
     }
+    function interceptVolumeUpbutton() {
+      eventOutput("Volume Up event intercepted");
+    }
+    function interceptVolumeDownbutton() {
+      eventOutput("Volume Down event intercepted");
+    }
     
     var eventOutput = function(s) {
         var el = document.getElementById("results");
@@ -72,6 +78,10 @@
     <div class="btn large" onclick="document.removeEventListener('backbutton', interceptBackbutton,
false);">Stop intercept of backbutton</div>
     <div class="btn large" onclick="document.addEventListener('menubutton', interceptMenubutton,
false);">Intercept menubutton</div>
     <div class="btn large" onclick="document.removeEventListener('menubutton', interceptMenubutton,
false);">Stop intercept of menubutton</div>
+    <div class="btn large" onclick="document.addEventListener('volumeupbutton', interceptVolumeUpbutton,
false);">Intercept volumeupbutton</div>
+    <div class="btn large" onclick="document.removeEventListener('volumeupbutton', interceptVolumeUpbutton,
false);">Stop intercept of volumeupbutton</div>
+    <div class="btn large" onclick="document.addEventListener('volumedownbutton', interceptVolumeDownbutton,
false);">Intercept volumedownbutton</div>
+    <div class="btn large" onclick="document.removeEventListener('volumedownbutton', interceptVolumeDownbutton,
false);">Stop intercept of volumedownbutton</div>
     <div class="btn large" onclick="document.addEventListener('searchbutton', interceptSearchbutton,
false);">Intercept searchbutton</div>
     <div class="btn large" onclick="document.removeEventListener('searchbutton', interceptSearchbutton,
false);">Stop intercept of searchbutton</div>
     <div class="btn large" onclick="document.addEventListener('resume', interceptResume,
false);">Intercept resume</div>


Mime
View raw message