diff options
author | Jeevaka Badrappan <jeevaka.badrappan@elektrobit.com> | 2011-01-14 11:38:54 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-01-18 21:54:42 -0600 |
commit | 3f880cfe88aeeff4d17f9d52ce1ca3cc82d12fd1 (patch) | |
tree | 6013789a7e0b1c3332b4c4b216ca13d5edae8837 /test | |
parent | aa9a9d095d7d92dabe4cabdf5b1b4aff0e0d0935 (diff) |
test: Add support for launch browser command
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-stk-menu | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test-stk-menu b/test/test-stk-menu index 673b5bc6..85b98ca3 100755 --- a/test/test-stk-menu +++ b/test/test-stk-menu @@ -157,6 +157,19 @@ class StkAgent(dbus.service.Object): return False @dbus.service.method("org.ofono.SimToolkitAgent", + in_signature="sys", out_signature="b") + def ConfirmLaunchBrowser(self, info, icon, url): + print "Information: (%s)" % (info) + print "Icon: (%d)" % (icon) + print "URL (%s)" % (url) + key = raw_input("Enter Confirmation (y, n):") + + if key == 'y': + return True + else: + return False + + @dbus.service.method("org.ofono.SimToolkitAgent", in_signature="", out_signature="") def Cancel(self): print "Cancel" |