Last modified: 2013-09-18 15:39:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50611, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48611 - QUnit tests: Missing expert destruction leads to failing tests when resourceloaderdebug is disabled
QUnit tests: Missing expert destruction leads to failing tests when resourcel...
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-19 07:20 UTC by Henning
Modified: 2013-09-18 15:39 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Henning 2013-05-19 07:20:56 UTC
In valueview.tests.testExpert.js, fresh expert instances are provided for each test. However, these instances are not destroyed after the individual tests have been performed. Due to that, DOM structures being added to the HTML body element during expert initialization are not removed after the tests have run causing interference with other QUnit tests.
Comment 1 Gerrit Notification Bot 2013-07-30 16:27:09 UTC
Change 76741 had a related patch set uploaded by Daniel Werner:
(bug 48611) valueview expert test setups won't create instances anymore

https://gerrit.wikimedia.org/r/76741
Comment 2 Daniel A. R. Werner 2013-07-30 16:36:45 UTC
This is actually not just about missing experts destruction primarily, it is mostly about experts being constructed outside of the actual tests (in some test definitions) which will even happen if the tests should not even be executed (e.g. because of using ?filter=xxx).
Comment 3 Daniel A. R. Werner 2013-07-30 16:41:26 UTC
Anyhow, when instantiating certain experts (e.g. time expert) they will use widgets that add some node to the html's body immediately (e.g. inputextender). In the tests of those widgets it is asserted whether the body contains any leftover DOM nodes. This assertion fails in case experts using those widgets got constructed during test setups but not destroyed. My change set will prevent the test setups from initializing experts before the actual test.
Comment 4 abraham.taherivand 2013-08-01 10:35:45 UTC
Verified in Wikidata demo July 31th.
Comment 5 Henning 2013-08-13 07:19:24 UTC
The according change set has not been merged. How come the fix for this bug got verified?
Comment 6 Henning 2013-08-13 07:45:44 UTC
Does not work properly without additionally applying
https://gerrit.wikimedia.org/r/#/c/76744/
https://gerrit.wikimedia.org/r/#/c/77479/
Comment 7 Gerrit Notification Bot 2013-08-15 09:55:02 UTC
Change 76741 merged by Jeroen De Dauw:
(bug 48611) valueview expert test setups won't create instances anymore

https://gerrit.wikimedia.org/r/76741

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links