Last modified: 2012-08-11 12:36:02 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 T41229, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39229 - mediawiki.user getGroups qunit tests fail
mediawiki.user getGroups qunit tests fail
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
1.20.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: javascript
Depends on:
Blocks: 39263
  Show dependency treegraph
 
Reported: 2012-08-10 14:05 UTC by Sam Reed (reedy)
Modified: 2012-08-11 12:36 UTC (History)
3 users (show)

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


Attachments

Description Sam Reed (reedy) 2012-08-10 14:05:50 UTC
mediawiki.user: getGroups (2, 1, 3)Rerun
"*"" is the first group
Expected: 	
"*"
Result: 	
undefined
Diff: 	
"*" undefined 
Source: 	
    at Object.<anonymous> (http://192.168.0.190/w/tests/qunit/suites/resources/mediawiki/mediawiki.user.test.js:40:10)
    at fire (http://192.168.0.190/w/load.php?debug=true&lang=en-gb&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120810T140017Z:1075:30)
    at Object.self.fireWith (http://192.168.0.190/w/load.php?debug=true&lang=en-gb&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120810T140017Z:1193:7)
    at Object.self.fire (http://192.168.0.190/w/load.php?debug=true&lang=en-gb&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120810T140017Z:1200:10)
    at Object.<anonymous> (http://192.168.0.190/w/resources/mediawiki/mediawiki.user.js:43:22)
    at fire (http://192.168.0.190/w/load.php?debug=true&lang=en-gb&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120810T140017Z:1075:30)
    at Object.self.fireWith (http://192.168.0.190/w/load.php?debug=true&lang=en-gb&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120810T140017Z:1193:7)
Array contains all groups, just like wgUserGroups
Expected: 	
[
  "*",
  "autoconfirmed",
  "bureaucrat",
  "checkuser",
  "svnadmins",
  "sysop",
  "user"
]
Result: 	
[]
Diff: 	
[
  "*",
  "autoconfirmed",
  "bureaucrat",
  "checkuser",
  "svnadmins",
  "sysop",
  "user"
] [] 
Source: 	
    at Object.<anonymous> (http://192.168.0.190/w/tests/qunit/suites/resources/mediawiki/mediawiki.user.test.js:43:10)
    at fire (http://192.168.0.190/w/load.php?debug=true&lang=en-gb&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120810T140017Z:1075:30)
    at Object.self.fireWith (http://192.168.0.190/w/load.php?debug=true&lang=en-gb&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120810T140017Z:1193:7)
    at Object.self.fire (http://192.168.0.190/w/load.php?debug=true&lang=en-gb&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120810T140017Z:1200:10)
    at Object.<anonymous> (http://192.168.0.190/w/resources/mediawiki/mediawiki.user.js:43:22)
    at fire (http://192.168.0.190/w/load.php?debug=true&lang=en-gb&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120810T140017Z:1075:30)
    at Object.self.fireWith (http://192.168.0.190/w/load.php?debug=true&lang=en-gb&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120810T140017Z:1193:7)
Comment 1 Krinkle 2012-08-11 07:25:25 UTC
Check your network requests, is the API call being made? exceptions on the php side?
Comment 2 Krinkle 2012-08-11 07:34:58 UTC
Works for me.

mediawiki.user: getGroups (0, 3, 3)Rerun
<Passed> ..
<Passed> ..
<Passed> Array contains all groups, just like wgUserGroups

Looks like maybe your local api.php has an issue? Since bug 39228 also uses the API and was failing for you.
Comment 3 Sam Reed (reedy) 2012-08-11 12:35:47 UTC
Now they work fine. FFS

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


Navigation
Links