Last modified: 2014-07-16 08:19:39 UTC
The use of this testsuit is somewhat limited, since there is no way to execute it automatically (you even have to load this module by hand!) Convert it to QUnit test to run them automatically, and expand the tests to cover things like bug 37484.
I've been working on this bug. I'll try to post something to Gerrit this week. As it stands, there is one assertion that fails. It looks like there's a bug preventing the removal of select tools.
According to the code [1] removeFromToolbar is not designed to be able to remove select tools (and probably never was). Changing line 161 to target = target + ' [rel="' + data.tool + '"].tool'; might fix this. [1] https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FWikiEditor/f5fcd50ce421b55a3d0a15f6c7d7707518a7284a/modules%2Fjquery.wikiEditor.toolbar.js#L148
Should I fix that in the same commit?