Followup r100391: fix caret position test case on Opera, Firefox 3.5/3.6/4.0/5.0
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 24 Oct 2011 22:28:09 +0000 (22:28 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 24 Oct 2011 22:28:09 +0000 (22:28 +0000)
commit6ee65920e8fdd0d4c49bb2ebbb4acea50392fc29
tree13fae4fb48656b6b1d79fc02bd409347526259e2
parentd85333fda8ded20b8fb6dd42ba64d99ffb24e7f1
Followup r100391: fix caret position test case on Opera, Firefox 3.5/3.6/4.0/5.0

Opera (through 11.52 at least) & Firefox prior to 6.0 set the caret initially to the end of the textarea, which gave a mismatch. All we really need is to know we got a sane value, so checking for both (start == 0; end == text.length) gets the job done.
Under ideal circumstances, we'd check after a user clicks in the textarea on the first line, but no good way to trigger that. :)
tests/qunit/suites/resources/jquery/jquery.textSelection.test.js