Merge lp:~michael.nelson/launchpad/561586-qa-fail into lp:launchpad

Proposed by Michael Nelson
Status: Merged
Approved by: Michael Nelson
Approved revision: no longer in the source branch.
Merged at revision: 11353
Proposed branch: lp:~michael.nelson/launchpad/561586-qa-fail
Merge into: lp:launchpad
Diff against target: 60 lines (+28/-3)
2 files modified
lib/lp/soyuz/templates/archive-macros.pt (+3/-3)
lib/lp/soyuz/windmill/tests/test_archive_packages.py (+25/-0)
To merge this branch: bzr merge lp:~michael.nelson/launchpad/561586-qa-fail
Reviewer Review Type Date Requested Status
Henning Eggers (community) code Approve
Review via email: mp+32745@code.launchpad.net

Commit message

Tests and fixes recently broken JS on PPA packages page.

Description of the change

Overview
========

This branch fixes a qa-fail for my previous MP:

https://code.edge.launchpad.net/~michael.nelson/launchpad/561586-move-js-to-lp-app/+merge/32180

which moved the soyuz Javascript, and updated the module names.

When accessing the page:
https://launchpad.dev/~cprov/+archive/ppa/+packages

the expandable source packages are not working in devel. This branch tests and fixes that.

Details
=======
It was just another instance of the old module name (soyuz-base) that I should have found with the previous branch.

To test
=======
bin/test -vvt test_sources_extra_available

To post a comment you must log in.
Revision history for this message
Henning Eggers (henninge) wrote :

Thanks!

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/lp/soyuz/templates/archive-macros.pt'
--- lib/lp/soyuz/templates/archive-macros.pt 2010-05-28 19:47:23 +0000
+++ lib/lp/soyuz/templates/archive-macros.pt 2010-08-16 14:18:47 +0000
@@ -10,7 +10,7 @@
10 </tal:comment>10 </tal:comment>
1111
12<script type="text/javascript">12<script type="text/javascript">
13LPS.use('node', 'io-base', 'lazr.anim', 'soyuz-base', function(Y) {13LPS.use('node', 'io-base', 'lazr.anim', 'lp.soyuz.base', function(Y) {
1414
1515
16/*16/*
@@ -23,7 +23,7 @@
23 startUpdate(args.container);23 startUpdate(args.container);
24 };24 };
2525
26 var failure_message = Y.soyuz.makeFailureNode(26 var failure_message = Y.lp.soyuz.base.makeFailureNode(
27 'Failed to fetch package details.', retry_handler);27 'Failed to fetch package details.', retry_handler);
2828
29 args.container.set('innerHTML', '');29 args.container.set('innerHTML', '');
@@ -48,7 +48,7 @@
48 * Dispatch a XHR for updating the given container.48 * Dispatch a XHR for updating the given container.
49 */49 */
50function startUpdate(container) {50function startUpdate(container) {
51 in_progress_message = Y.soyuz.makeInProgressNode(51 in_progress_message = Y.lp.soyuz.base.makeInProgressNode(
52 'Fetching package details ...')52 'Fetching package details ...')
5353
54 container.set('innerHTML', '');54 container.set('innerHTML', '');
5555
=== added file 'lib/lp/soyuz/windmill/tests/test_archive_packages.py'
--- lib/lp/soyuz/windmill/tests/test_archive_packages.py 1970-01-01 00:00:00 +0000
+++ lib/lp/soyuz/windmill/tests/test_archive_packages.py 2010-08-16 14:18:47 +0000
@@ -0,0 +1,25 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).
3
4from canonical.launchpad.windmill.testing import constants
5from lp.soyuz.windmill.testing import SoyuzWindmillLayer
6from lp.testing import WindmillTestCase
7
8
9class TestArchivePackagesSourcesExtra(WindmillTestCase):
10 """Each listed source package can be expanded for extra information."""
11
12 layer = SoyuzWindmillLayer
13
14 def test_sources_extra_available(self):
15 """A successful request for the extra info updates the display."""
16
17 self.client.open(
18 url='http://launchpad.dev:8085/~cprov/+archive/ppa/+packages')
19 self.client.waits.forPageLoad(timeout=constants.PAGE_LOAD)
20
21 self.client.click(id="pub29-expander")
22
23 self.client.waits.forElement(
24 xpath=u'//div[@id="pub29-container"]//a[text()="i386"]',
25 timeout=constants.FOR_ELEMENT)