Merge lp://staging/~benji/juju-gui/bug-1088507 into lp://staging/juju-gui/experimental
Status: | Merged |
---|---|
Merged at revision: | 285 |
Proposed branch: | lp://staging/~benji/juju-gui/bug-1088507 |
Merge into: | lp://staging/juju-gui/experimental |
Diff against target: |
925 lines (+433/-395) 7 files modified
Makefile (+19/-10) app/app.js (+1/-0) app/views/charm-panel.js (+32/-4) bin/merge-files (+2/-0) test/index.html (+5/-1) test/test_charm_configuration.js (+20/-29) test/test_model.js (+354/-351) |
To merge this branch: | bzr merge lp://staging/~benji/juju-gui/bug-1088507 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+140020@code.staging.launchpad.net |
Description of the change
Make the prod tests pass.
Changes a test that was failing because of some slight style difference to be
more direct. Some slight style differences still exist between prod and dev.
The charm model module (app/models/
and minified JS file.
The event-simulate and node-event-simulate functions are needed for the tests,
so they are now directly loaded by test/index.html.
The test_charm_
was not specified.
test/test_model.js had to be rearranged so the YUI().use method was called
inside the "before" method instead of around the entire test module. This
resulted in a mass reindenting.
Incidentally: Fixes the Makefile so YUI module assets are in the right place
so requests for them do not 404.
Land with changes.
Thank you for accomplishing this difficult task.
In addition to the comments below, please add a request in process.rst
that reviewers run both prod tests and debug tests. Then, in the
Makefile, either make the default test the prod test, or make it thumb
its nose at us and tell us to run one of the other targets.
Gary
https:/ /codereview. appspot. com/6947057/ diff/1/ Makefile
File Makefile (right):
https:/ /codereview. appspot. com/6947057/ diff/1/ Makefile# newcode293 /build- $(1)/juju- ui/assets/ ")
Makefile:293: cp -r --parents */assets
"$(PWD)
Looks nicer to me, thanks.
https:/ /codereview. appspot. com/6947057/ diff/1/ bin/merge- files
File bin/merge-files (right):
https:/ /codereview. appspot. com/6947057/ diff/1/ bin/merge- files#newcode50 syspath. join(process. cwd(), charm.js' ));
bin/merge-files:50: paths.push(
'app/models/
As we discussed, please either figure out why readdir is not finding
charm.js, or put an XXX and a bug, and we will come back to this.
https:/ /codereview. appspot. com/6947057/ diff/1/ test/index. html
File test/index.html (right):
https:/ /codereview. appspot. com/6947057/ diff/1/ test/index. html#newcode9 ui/assets/ node-event- simulate. js"></script>
test/index.html:9: <script
src="/juju-
You explained the horror behind these two inclusions. Please add a
comment so others can enjoy.
https:/ /codereview. appspot. com/6947057/