-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Conversation
It looks like with this change, you need to do |
Since this related issue, #3511, is labeled Angular 1.3 I've added the Angular 1.3 label here as well. |
@rvanbaalen not exactly, it's actually an ngAnimate issue but nonetheless we should try to have this fixed for next release. |
@snehatulsi , could you please add |
I don't know where is the test, and where can I add the code. Can you
please help me out.
|
No problem, the tests are located at: https://github.com/angular-ui/bootstrap/blob/master/src/dropdown/test/dropdown.spec.js You can see the failures when you run |
@chrisirhc I tried adding the code. I got the error $browser not defined. I tried with modifications, but failed. I don't know the test specs, I have never done testing this way. Please mention where to inject $browser dependency, and where to insert code for $browser.defer.flush() |
|
||
beforeEach(module('ui.bootstrap.dropdown')); | ||
|
||
beforeEach(inject(function(_$compile_, _$rootScope_, _$document_) { | ||
beforeEach(inject(function(_$compile_, _$rootScope_, _$document_, $browser) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use _$browser_
here
Added a comment. You need to add the The flush call ensures that all promises have been resolved, since you moved the toggleHandler to be called in a |
$browser.defer.flush(); added
@chrisirhc The test passed |
@snehatulsi Can you update this PR, it can no longer be merged against master |
Can you squash your commits & rebase off of master? |
Call on-toggle function of dropdown in resolve function of $animate