Last modified: 2013-10-31 23:22:44 UTC
Mobile JavaScript is currently sandboxed from desktop to keep the startup module size down and to prevent leakage of elements not yet ready for desktop mode. To force this mode the QUnit tests need to be run in the mobile skin using: http://localhost/w/index.php/Special:JavaScriptTest/qunit?useformat=mobile It would be good if the Jenkins script could be setup to add this useformat=mobile parameter so the correct tests run...
We could potentially hack the qunit macro to append '?useformat=mobile whenever the ZUUL_PROJECT is set to mediawiki/extension/MobileFrontend. Would you like to have both jobs running? Aka the default + useformat=mobile one?
Only a single job is required right now, although in future we are likely to need 2 so it depends what is easiest to do now... :)
Change 92804 had a related patch set uploaded by JanZerebecki: Add mwext-MobileFrontend-qunit-mobile with useformat=mobile. https://gerrit.wikimedia.org/r/92804
Zuul triggers deployed by https://gerrit.wikimedia.org/r/#/c/92997/, the job is made non voting to prevent blocking folks while their tests are being polished up. Assigned to Jan since he did most of the work (congratulations Jan).
Change 92804 merged by jenkins-bot: Add mwext-MobileFrontend-qunit-mobile with useformat=mobile. https://gerrit.wikimedia.org/r/92804
Thanks Jan. Sadly it's not quite working for unknown reasons - for some reason the URL generated is relative rather than absolute..
Wait I take it back.. now it seems to be working correctly. It's desktop tests that are not working..