andreareginato/oauth-ng — pull request #50 by abuecker (2014-11-03 18:18:38+00:00)
Title: fix(protractor): Replace $timeout with $interval

Submitting this one more time. I was a bad citizen and made my changes to the "dist/oauth-ng" file. Changes are now made to the correct source files.

Protractor E2E tests timeout and fail while waiting on all $timeouts()
to complete. Basically, protractor is waiting for the token to expire.
Thankfully, protractor does not wait until $interval() functions are
complete, since they are typically used for polling events. Using an
$interval with a count of 1 is essentially the same thing as calling
$timeout and the protractor tests pass.