Followup r87986: qunit test case for bug 30825
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 9 Sep 2011 18:43:37 +0000 (18:43 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 9 Sep 2011 18:43:37 +0000 (18:43 +0000)
commitc0d4714fa5d095c7fa3ae24afc2ffe6536b05b0f
treed5c707d68ba8c7a9c8c23805cce33dc422251970
parente33f0f8907e9e49481fef7a544016c590f721e53
Followup r87986: qunit test case for bug 30825

jQuery's $.append() and friends go through some funky code paths which sometimes manually load <script> node contents via AJAX and eval them. That failed entirely in IE 7 if given a protocol-relative link ($wgServer = '//commons.wikimedia.org').
The fix in r87986 bypasses that by using DOM append directly on a script node, and thus fixes bug 30825 without even knowing it. :)

This test serves as a regression test.
tests/qunit/suites/resources/mediawiki/mediawiki.test.bug30825.js [new file with mode: 0644]
tests/qunit/suites/resources/mediawiki/mediawiki.test.js