Adding tests for expected reponse when passing invalid values to Map.get
authorKrinkle <krinkle@users.mediawiki.org>
Sun, 3 Jul 2011 23:22:50 +0000 (23:22 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sun, 3 Jul 2011 23:22:50 +0000 (23:22 +0000)
commit153c4c2221d8216599ce53ebe47220f8d542df5e
treeec245c51ee5d17a62a088cf92e675aa3286b4ea2
parentdab77e715bd8776b7df5ec4ce58ecb5ec8e9a15e
Adding tests for expected reponse when passing invalid values to Map.get
* These are currently @broken
* Map.get should (as documented) handle an object for multiple or a string for a single selection and return the value(s). Right now, however, the function returns the values object if the first two if-cases are not matched. It needs an additional check to verify that there are indeed no arguments passed.
* Adding comments in the test suite
tests/qunit/suites/resources/mediawiki/mediawiki.js