Page MenuHomePhabricator

QUnit failures in browser for toggling tests
Closed, ResolvedPublic

Description

http://127.0.0.1:8080/wiki/Special:JavaScriptTest/qunit?module=MobileFrontend%20toggle.js%3A%20remember%20expanded%20sections

causes various issues.
We should really be using sinon in some way here.

Side note:

  • getExpandedSections has side effects (updates local storage)
  • Really this code should be refactored. The toggle code is now horribly unreadable. We should think about giving it a complete rewrite, maybe making use of Page.

Version: unspecified
Severity: normal

Details

Reference
bz72506

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:49 AM
bzimport set Reference to bz72506.

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/bXRsm7AE

gerritadmin wrote:

Change 169020 had a related patch set uploaded by Jdlrobson:
Fix failing tests

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

gerritadmin wrote:

Change 169020 merged by Kaldari:
Fix failing tests

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