Fix JavaScript unit tests for 2.0.x.
Review Request #6443 — Created Oct. 14, 2014 and submitted — Latest diff uploaded
A lot of the optimizations made resulted in broken unit tests, due to
various tests not accounting for throttled results.We now optimistically disable throttling where possible (for cases where
the _.throttle call isn't part of the object's prototype) and do proper
async testing in the other cases.
Unit tests pass.
reviewboard/static/rb/js/views/reviewBoxView.js |
---|
reviewboard/static/rb/js/views/tests/commentDialogViewTests.js |
---|
reviewboard/static/rb/js/views/tests/reviewRequestEditorViewTests.js |
---|
reviewboard/templates/js/tests.html |
---|