Add test suite for jquery.byteLimit:
authorKrinkle <krinkle@users.mediawiki.org>
Sun, 10 Jul 2011 21:01:24 +0000 (21:01 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sun, 10 Jul 2011 21:01:24 +0000 (21:01 +0000)
commita874cc79bdb32499aaccd89d36a2b1439edc95c4
tree117dbdef7f56d6ee6f6c41acd3fd95ed50b2b176
parentec0596916e9ae9e5432dc62e7fe914894ce2f025
Add test suite for jquery.byteLimit:
- Tests to verify that the byteLength does not exceed the byteLimit when inserting more characters
- Tests to verify that it doesn't prevent too early (ie. if limit is 10 and we insert 20 characters, there should be 10 characters in the input field).

This test suite has exposed that the latter is currently broken. jquery.byteLimit is preventing characters to be added as soon as byteLength(currentValue) + 3 is more than the given limit.

(Follows-up r86698, r91148)
tests/qunit/index.html
tests/qunit/suites/resources/jquery/jquery.byteLimit.js [new file with mode: 0644]