Fix JavaScript test regressions from recently-merged changes.
Review Request #9120 — Created Aug. 4, 2017 and submitted
Our JavaScript unit tests had a few regressions due to changes made
against Review Board 2.0/2.5 that made use of Jasmine functionality and
Review Board semantics that were no longer correct on 3.0. There were
three breakages:
RB.DnDUploader
on 3.0 no longer allows multiple instances to be
created, and we weren't resetting this.Jasmine's
andCallFake
is nowand.callFake
.The syntax for asynchronous tests in Jasmine changed, breaking the new
XSS tests.These issues have all been fixed.
Unit tests pass.
- Summary:
-
Fix JavaScript test regressions from recently-merged changed.Fix JavaScript test regressions from recently-merged changes.
- Description:
-
Our JavaScript unit tests had a few regressions due to changes made
against Review Board 2.0/2.5 that made use of Jasmine functionality and Review Board semantics that were no longer correct on 3.0. There were three breakages: -
RB.DnDUploader
on 3.0 no longer allows multiple instances to be
created, and we weren't resetting this.
-
Jasmine's
andCallFake
is nowand.callFake
.
~ -
The syntax for asyncronous tests in Jasmine changed, breaking the new
XSS tests.
~ -
The syntax for asynchronous tests in Jasmine changed, breaking the new
XSS tests.
These issues have all been fixed.
-