Merge lp:~allenap/launchpad/no-display-name-from-api-bug-491334 into lp:launchpad
Proposed by
Gavin Panella
Status: | Merged |
---|---|
Approved by: | Gavin Panella |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~allenap/launchpad/no-display-name-from-api-bug-491334 |
Merge into: | lp:launchpad |
Diff against target: |
94 lines (+59/-5) 2 files modified
lib/canonical/launchpad/javascript/bugs/subscriber.js (+2/-1) lib/canonical/launchpad/javascript/bugs/tests/test_subscriber.js (+57/-4) |
To merge this branch: | bzr merge lp:~allenap/launchpad/no-display-name-from-api-bug-491334 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | js | Approve | |
Review via email: mp+15808@code.launchpad.net |
To post a comment you must log in.
Add tests to check that the API is not consulted for the subscriber's
display name if no user is logged in. Additionally, check that it is
consulted when the user is logged in, but that it could not be
obtained by other means.
Also, I changed the test_display_ name_load_ event() test which I at
first thought would never fail, but in fact it would. However, it was
using test.wait() and test.resume() incorrectly because it passed the
*output* of running Y.Assert.areSame() to test.resume() instead of a
function that then does the assertion. In any case, event dispatch
here is synchronous, so I've removed the test.wait() and test.resume()
altogether, making the test simpler.
No lint.
Test: firefox lib/canonical/ launchpad/ javascript/ bugs/tests/ subscriber. html