Add to jquery.client's qunit tests by actually testing the test() function against...
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 3 Nov 2011 18:33:11 +0000 (18:33 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 3 Nov 2011 18:33:11 +0000 (18:33 +0000)
commit7e2851b8093030aa9fe97ee83d2b994273b29b36
treea1c853b2071aa8ba0f497e564e7ad0bb396fb5b8
parentd4885e2ae8caae74e42a38f4c7c906cd1f08efa2
Add to jquery.client's qunit tests by actually testing the test() function against the sample user-agents.

Also changed from hardcoded constant of how many user-agents to test to counting them so it won't get out of sync.

Added Firefox 10 and IE 10 sample user-agent strings in to make sure they test correctly.
They *do* test correctly *if and only if* you use raw numbers for a major-version test (eg > 7). If you tried > "7.0" you would find it fails on the version 10 browsers.
tests/qunit/suites/resources/jquery/jquery.client.test.js