Bug 918970 - display existing thread when sending a sms from contact app

Promise are cool!

Actually I'm doing something like findThread(viewInfo).then(findContact).then(this.toView.bind(this)) but more or less the same idea I guess.

But now I have a problem with my test : before that, I was actually not using asynchronous execution by using yieldsTo, but now I need to somehow wait for ah_toView to finish, to test for calling parameters as well as to make sure the lock is properly released. How can I wait for the activity to finish?