Created
July 18, 2013 09:05
-
-
Save rexboy7/6027881 to your computer and use it in GitHub Desktop.
Test code for bug 894287
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/apps/communications/dialer/js/oncall.js b/apps/communications/dialer/js/oncall.js | |
index b45db90..bce8592 100644 | |
--- a/apps/communications/dialer/js/oncall.js | |
+++ b/apps/communications/dialer/js/oncall.js | |
@@ -279,6 +279,10 @@ var OnCallHandler = (function onCallHandler() { | |
}); | |
if (!stillHere) { | |
+ console.log('current calls:' + telephony.calls.length); | |
+ telephony.calls.forEach(function print(call) { | |
+ console.log('::' + call.number); | |
+ }); | |
removeCall(index); | |
} | |
}); | |
diff --git a/apps/system/emergency-call/js/dialer.js b/apps/system/emergency-call/js/dialer.js | |
index b245600..58069fa 100644 | |
--- a/apps/system/emergency-call/js/dialer.js | |
+++ b/apps/system/emergency-call/js/dialer.js | |
@@ -15,6 +15,11 @@ var CallHandler = { | |
call.onconnected = cb; | |
call.ondisconnected = function callEnded() { | |
+ console.log('system_ondisconnected_current calls:' + | |
+ telephony.calls.length); | |
+ telephony.calls.forEach(function print(call) { | |
+ console.log('--' + call.number); | |
+ }); | |
cb(); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment