jquery.client unit testing
authorKrinkle <krinkle@users.mediawiki.org>
Mon, 4 Jul 2011 19:11:08 +0000 (19:11 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Mon, 4 Jul 2011 19:11:08 +0000 (19:11 +0000)
commitb4f0c3ea62fca995f57a6669d786e77894eb295e
treee0ce2a5d467d8796950198a058eae01b7e9a60cd
parent1fa782d4fdaedefc123324fc54c5015aac5faed6
jquery.client unit testing
- More elaborate caching in the plugin in order for the code to be testable
- Added support for passing custom user agents (although the default behavior remains unchanged)
- Added support for passing custom profile-objects to $.client.test
- Added test case for all supported browsers according to http://www.mediawiki.org/wiki/Compatibility#Browser
- Replaced userAgent.toLowerCase() with userAgent since this string was already converted to lower case a few lines up

This will likely prevent bugs like bug 27652 and bug 29446.
resources/jquery/jquery.client.js
tests/qunit/suites/resources/jquery/jquery.client.js