Merge lp:~michael.nelson/launchpad/db_soyuz_js_tests_broken into lp:launchpad/db-devel
Proposed by
Michael Nelson
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp:~michael.nelson/launchpad/db_soyuz_js_tests_broken | ||||
Merge into: | lp:launchpad/db-devel | ||||
Diff against target: |
134 lines (+14/-24) 3 files modified
lib/canonical/launchpad/javascript/soyuz/lp_dynamic_dom_updater.js (+11/-21) lib/canonical/launchpad/javascript/soyuz/tests/archivesubscribers_index.js (+2/-2) lib/canonical/launchpad/javascript/soyuz/tests/lp_dynamic_dom_updater.js (+1/-1) |
||||
To merge this branch: | bzr merge lp:~michael.nelson/launchpad/db_soyuz_js_tests_broken | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Māris Fogels (community) | Approve | ||
Review via email: mp+15204@code.launchpad.net |
To post a comment you must log in.
= Summary =
This branch fixes two things. First, it updates the soyuz js unit-tests
so that they work. Second, it updates the DynamicDomUpdater plugin to
work with YUI3.
== Proposed fix ==
Update tests to use 'test' instead of 'yuitest'.
Update the plugin to use the new 'host' attribute rather than the
previous 'owner' attribute, for the node hosting the plugin.
== Pre-implementation notes ==
== Implementation details ==
== Tests ==
firefox launchpad/ javascript/ soyuz/tests/ lp_dynamic_ dom_updater. html
lib/canonical/
firefox launchpad/ javascript/ soyuz/tests/ archivesubscrib ers_index. html
lib/canonical/
== Demo and Q/A ==
= Launchpad lint =
Lint seems to have linted more than just the files I've changed, but all
the files I've changed (under javascript/soyuz) are lint-free.
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: /launchpad/ javascript/ soyuz/tests/ lp_dynamic_ dom_updater. js /launchpad/ javascript/ soyuz/tests/ archivesubscrib ers_index. js /launchpad/ javascript/ soyuz/lp_ dynamic_ dom_updater. js
lib/canonical
lib/canonical
lib/canonical
== JSLint notices == michael/ canonical/ lp-branches/ db_soyuz_ js_tests_ broken/ lib/canonical/ launchpad/ javascript/ bugs/bug_ tags_entry. js':
function( elem) { return elem != ''; });
jslint: Lint found in
'/home/
Line 68 character 42: Use '!==' to compare with ''.
Line 106 character 40: Use '===' to compare with ''. trim(tags_ html) == '') {
if (Y.Lang.
Line 132 character 23: Line breaking error ')'. e.hide( )
autocomplet
Line 132 character 24: Missing semicolon. e.hide( )
autocomplet
Line 134 character 53: Use '===' to compare with ''. trim(tag_ list_span. get('innerHTML' )) == '') {
if (Y.Lang.
Line 164 character 25: ['me'] is better written in dot notation. links[' me'] === undefined) { return; }
if (LP.client.
Line 217 character 43: Line breaking error ')'. tags_trigger. addClass( 'js-action' )
edit_
Line 217 character 44: Missing semicolon. tags_trigger. addClass( 'js-action' )
edit_
Line 228 character 22: Use '!==' to compare with 'null'.
if (e.newVal != null) {
jslint: No problem found in michael/ canonical/ lp-branches/ db_soyuz_ js_tests_ broken/ lib/canonical/ launchpad/ javascript/ bugs/bugtask- index.js' .
'/home/
jslint: No problem found in michael/ canonical/ lp-branches/ db_soyuz_ js_tests_ broken/ lib/canonical/ launchpad/ javascript/ bugs/filebug- dupefinder. js'.
'/home/
jslint: Lint found in michael/ canonical/ lp-branches/ db_soyuz_ js_tests_ broken/ lib/canonical/ launchpad/ javascript/ bugs/offical_ bug_tags. js':
'/home/
Line 81 character 19: Use '===' to compare with 'null'.
if (count == null) {
Line 147 character 20: Use '===' to compare with '0'.
if (item.count == 0) {
Line 304 character 23: Use '===' to compare with 'null'.
if (count == null) {
Line 403 character 57: Use '===' to compare with ''.
Y.one( '#new-tag- add').set( 'disabled' , new_value == '');
jslint: No problem found in michael/ canonical/ lp-branches/ db_soyuz_ js_tests_ broken/ lib/canonical/ launchpad/ javascript/ bugs/subscriber .js'.
'/home/
jslint: No problem foun...