angular/protractor — pull request #1155 by hankduan (2014-08-04 20:44:07+00:00)
Title: Change defer-bootstrap logic as follows:

*Bootstrap is done immediately when you call (add/remove/clear)MockModule
*Angular will deal with subsequent bootstrap without pausing for
protractor (and bootstrap)
*browser.get (and other navigation) will be a straight call to wd
*back/forward will start working for protractor (with injected module)
*if another site redirects to Angular (e.g. login), mock modules can now be
injected

Note: testapp/lib/angular_v1.2.9/angular.js is included for reference
and will not be submitted as part of this PR (there will be a PR
for angular)

Breaking changes:
*(add/remove/clear)MockModule will take an addition param (url), which
is the url you are modifying the mock modules for. Injection will
be done immediately.
*browser.get or any action will timeout if you have a $timeout > 10s
in the app. ($timeout with waitForAngular was not supported before,
just that now even page will not load subsequently)

Compatibility:
*bootstrap will not work for subsequent get/navigate if your browser
does not support localSession
*bootstrap will not work for subsequent get/navigate if you are
testing an older version of Angular