jquery.byteLimit: Improve unit tests
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 21 May 2013 20:33:38 +0000 (22:33 +0200)
committerCatrope <roan.kattouw@gmail.com>
Fri, 24 May 2013 09:20:47 +0000 (09:20 +0000)
commit4caa8528cabeac71bb0181d19e1c611afa71b7f5
tree624f721031609f55b6e7247e13228b0160f9f180
parent7106407580616dc56bfe414e03839b1f50270a74
jquery.byteLimit: Improve unit tests

* Update outdated documentation
* Remove hasLimit and limit properties of the test helper
  function. These just repeated data already provided
  (hasLimit if input != output, limit == expected.length)
* Add tests for a filter that increases the length
  (currently only a decreasing filter was tested).

Change-Id: Ib4c19f4d49ed9d19117bbbaccedb0fccaeb34719
tests/qunit/suites/resources/jquery/jquery.byteLimit.test.js