diff options
author | Simon Busch <morphis@gravedo.de> | 2012-07-24 09:08:24 +0200 |
---|---|---|
committer | Simon Busch <morphis@gravedo.de> | 2012-07-24 09:08:24 +0200 |
commit | 54bc4b6df03ec2d417d23d797a75287be4e2fb9e (patch) | |
tree | 8d58bd4295ebecade76381668b9f3e68773fbb70 | |
parent | 87723f48f8414e82a4ac40764b2b26a94f10c7c6 (diff) | |
download | cornucopia-54bc4b6df03ec2d417d23d797a75287be4e2fb9e.tar.gz cornucopia-54bc4b6df03ec2d417d23d797a75287be4e2fb9e.tar.bz2 cornucopia-54bc4b6df03ec2d417d23d797a75287be4e2fb9e.zip |
fsogsmd: tests: integration: explicitly select a call by number from the list of available calls
-rw-r--r-- | fsogsmd/tests/integration-tests.vala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fsogsmd/tests/integration-tests.vala b/fsogsmd/tests/integration-tests.vala index 5cb32855..31508760 100644 --- a/fsogsmd/tests/integration-tests.vala +++ b/fsogsmd/tests/integration-tests.vala @@ -121,7 +121,7 @@ public class PhonesimRemotePhoneControl : FsoFramework.AbstractObject, IRemotePh public async void activate_incoming_call( int id ) throws RemotePhoneControlError { - string script = "tabCall.pbActive.click();"; + string script = """tabCall.twCallMgt.selectRow( %i ); tabCall.pbActive.click();""".printf( id ); yield execute_script( script ); } @@ -491,9 +491,8 @@ public class FsoTest.TestGSM : FsoFramework.Test.TestCase // FIXME id doesn't have to match as there are not exchanged between phonesim and // fsogsmd but if we keep everything in the right order and don't do crazy things - // we can assume which id is used in phonesim for a new call easily. In this case - // it's the same as both phonesim and fsogsmd starts counting new calls with 1. - yield remote_control.activate_incoming_call( id ); + // we can assume which id is used in phonesim for a new call easily. + yield remote_control.activate_incoming_call( 0 ); yield asyncWaitSeconds( 1 ); calls = yield gsm_call.list_calls(); |