angular/protractor — pull request #794 by sgronblo (2014-05-08 09:50:02+00:00)
Title: fix(jasminewd): Use promise.all to combine promises and done

I tried the change for allowing done callbacks by @hankduan but my test case was getting stuck when I was doing `browser.get(url)`. I don't have proof of this but I suspect that this might be for cases that use both asynchronous functions as well as using the control flow promise manager. There were only separate test cases for asynchronous functionality and control flow, but no test case where both are used at the same time.

But instead of spending time figuring out where exactly the code goes wrong I tried my own version of solving the problem where I make the flowFinished promise explicit and then using `webdriver.promise.all` to call the done function when both promises are fulfilled. This solves my problem and makes my whole test suite pass so it seems I did something right.