Merge lp:~sinzui/launchpad/enable-tests-0 into lp:launchpad
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 11941 | ||||||||||||
Proposed branch: | lp:~sinzui/launchpad/enable-tests-0 | ||||||||||||
Merge into: | lp:launchpad | ||||||||||||
Diff against target: |
232 lines (+78/-42) 7 files modified
lib/canonical/launchpad/doc/emailaddress.txt (+9/-7) lib/lp/app/javascript/tests/test_lp_collapsibles.html (+6/-6) lib/lp/app/javascript/tests/test_lp_collapsibles.js (+17/-9) lib/lp/app/windmill/testing.py (+21/-0) lib/lp/app/windmill/tests/test_yuitests.py (+24/-0) lib/lp/registry/javascript/tests/test_milestone_table.html (+1/-1) lib/lp/services/mailman/doc/postings.txt (+0/-19) |
||||||||||||
To merge this branch: | bzr merge lp:~sinzui/launchpad/enable-tests-0 | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Edwin Grubbs (community) | code | Approve | |
Benji York (community) | code* | Approve | |
Review via email: mp+41088@code.launchpad.net |
Description of the change
This is my branch to enable broken tests.
lp:~sinzui/launchpad/enable-tests-0
Diff size: 233
Launchpad bug:
https:/
https:/
https:/
Test command: ./bin/test -vv \
-t '(app|registry)
-t doc/emailaddress
Test command: ./bin/test -vv --layer=Mailman -t postings
Pre-
Target release: 10.12
Enable broken tests
-------------------
Bug 488491 tests/test_
The test was not updated propery when the module was moved and
lazr.effects was added.
Bug 383615 Spurious test failure in emailaddress.txt
The test was disabled because of a suprious failure. The failure though
is in factory.
If there was a real problem, we would be seeing this very often. I know
that makePerson and the rules for account have changed this year, so
we should re-enable this.
Bug 318842 postings.txt can fail when run in a non-English locale
The page test expects the English Mailman message
Rules
-----
Bug 488491 tests/test_
* Fix the script and css imports in the harness (the html page)
* Fix the imports in the js test
* Fix the test broken by the switch to lazr.effects. the setup in
test_
the lazr-close class. The collapsible script does not use the
lazr-open class.
* Fix _should.error. The test confused exceptions and assertions.
_should.error checks for *exceptions*, but the collapsible script uses
the fail assertion, which is an *event*. change _should.error to
_should.fail to ensure something is listening for the event.
* Add a yuitest harness so that the test is run in the test runner.
Bug 383615 Spurious test failure in emailaddress.txt
* Rename the test
* Update the imports that were not updated when modules were moved.
Bug 318842 postings.txt can fail when run in a non-English locale
* Remove the body of the message, the header already states that the
message was rejects.
Lint
----
Linting changed files:
lib/canonical
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
Test
----
Renamed the test and updated the imports:
lib/
Fixed import, correct the setup for lazr.effects, and used _should.fail when
checking for assertion events.
lib/
lib/
Added a test harness to run the lp.app YUI unittests
lib/
lib/
lib/
lib/
Fixed the css import in the html test harness. (You can spot the failure
while watching the test log scroll)
lib/
Removed the part localisable part of the message.
lib/
This branch looks good (Edwin, my mentor, will be reviewing this MP as well.).
I just have one question about this snippet:
=== modified file 'lib/lp/ registry/ javascript/ tests/test_ milestone_ table.html' registry/ javascript/ tests/test_ milestone_ table.html 2010-04-28 18:43:25 +0000 registry/ javascript/ tests/test_ milestone_ table.html 2010-11-17 19:23:42 +0000 ./../.. /../canonical/ launchpad/ icing/yui/ cssreset/ reset.css" /> ./../.. /../canonical/ launchpad/ icing/yui/ cssfonts/ fonts.css" /> ./../.. /../canonical/ launchpad/ icing/yui/ cssbase/ base.css" /> ./../.. /canonical/ launchpad/ javascript/ test.css" /> ./../.. /../canonical/ launchpad/ javascript/ test.css" />
--- lib/lp/
+++ lib/lp/
@@ -9,7 +9,7 @@
<link rel="stylesheet" href=".
<link rel="stylesheet" href=".
<link rel="stylesheet" href=".
- <link rel="stylesheet" href=".
+ <link rel="stylesheet" href=".
I notice the original (and your change) has self-closing tags both with
and without a space before the terminal forward slash. Is one preferred
over the other?