Merge lp:~rharding/launchpad/yuixhr_combo into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Richard Harding on 2012-03-23 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15004 |
| Proposed branch: | lp:~rharding/launchpad/yuixhr_combo |
| Merge into: | lp:launchpad |
| Diff against target: |
286 lines (+135/-69) 5 files modified
lib/lp/registry/javascript/tests/test_milestone_creation.js (+1/-4) lib/lp/testing/tests/test_standard_yuixhr_test_template.js (+1/-5) lib/lp/testing/tests/test_yuixhr_fixture.js (+1/-4) lib/lp/testing/tests/test_yuixhr_fixture_facet.js (+1/-4) lib/lp/testing/yuixhr.py (+131/-52) |
| To merge this branch: | bzr merge lp:~rharding/launchpad/yuixhr_combo |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2012-03-23 | Approve on 2012-03-23 |
|
Review via email:
|
|||
Commit Message
Update YUI XHR tests to be able to folllow the combo loader feature flag and run tests both with and without going through the combo loader JS.
Description of the Change
= Summary =
The YUI XHR tests are the last that need to be updated for the upcoming combo loader era. They run their own web app instance and need to check the feature flag settings and vary the YUI config just as the base-layout-macros code does.
== Proposed Fix ==
Add checks for the feature flag, swap out the YUI config based on that, and allow this app to serve out the JS and CSS files needed from the combo loader build directory. It serves them one at a time though since it cannot access a running combo loader server during tests.
== Implementation Details ==
Added a new render path COMBOFILE and updated the html rendering. Tests then needed to be updated to use the standard LPJS and not setup their own loader rules.
== Tests ==
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Demo and Q/A ==
The tests should all pass, you can also make run-testapp and set the combo loader feature flag and run the tests manually to see them pass with the different loading enabled.

This looks great Rick and I find it to be much cleaner. Thanks!
<nit>At 208 (and perhaps elsewhere) would you follow PEP-8 wrt comments being properly capitalized and punctuated?</nit>