mediawiki-extensions-Visual.../modules/ve/test
Timo Tijhof 23c5b0d02c Make use of new jshint options
* Restricting "camelcase":
  No changes, we were passing all of these already

* Explicitly unrestricting "forin" and "plusplus"
  These are off by default in node-jshint, but some distro of jshint
  and editors that use their own wrapper around jshint instead of
  node-jshint (Eclipse?) may have different defaults. Therefor
  setting them to false explicitly. This also serves as a reminder
  for the future so we'll always know we don't pass that, in case
  we would want to change that.

* Fix order ("quotemark" before "regexp")

* Restricting "unused"
  We're not passing all of this, which is why I've set it to false
  for now. But I did put it in .jshintrc as placeholder.
  I've fixed most of them, there's some left where there is no clean
  solution.

* While at it fix a few issues:
 - Unused variables ($target, $window)
 - Bad practices (using jQuery context for find instead of creation)
 - Redundant /*global */ comments
 - Parameters that are not used and don't have documentation either
 - Lines longer than 100 chars @ 4 spaces/tab

* Note:
 - ve.ce.Surface.prototype.onChange takes two arguments but never
   uses the former. And even the second one can be null/undefined.
   Aside from that, the .change() function emits
   another event for the transaction already. Looks like this
   should be refactored a bit, two more separated events probably
   or one that is actually used better.
 - Also cleaned up a lot of comments, some of which were missing,
   others were incorrect
 - Reworked the contentChange event so we are no longer using the
   word new as an object key; expanded a complex object into multiple
   arguments being passed through the event to make it easier to work
   with and document

Change-Id: I8490815a508c6c379d5f9a743bb4aefd14576aa6
2012-08-10 02:50:30 +02:00
..
ce After much research on error objects, native = good, custom = bad 2012-08-08 10:48:53 -07:00
dm Make use of new jshint options 2012-08-10 02:50:30 +02:00
image.png Move test files 2012-07-25 14:35:49 -07:00
index.html After much research on error objects, native = good, custom = bad 2012-08-08 10:48:53 -07:00
ve.BranchNode.test.js After much research on error objects, native = good, custom = bad 2012-08-08 10:48:53 -07:00
ve.Document.test.js Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
ve.example.js Puttin' em white-spacers where they aught'a be 2012-08-06 18:52:19 -07:00
ve.Factory.test.js After much research on error objects, native = good, custom = bad 2012-08-08 10:48:53 -07:00
ve.LeafNode.test.js Puttin' em white-spacers where they aught'a be 2012-08-06 18:52:19 -07:00
ve.Node.test.js Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
ve.qunit.js Puttin' em white-spacers where they aught'a be 2012-08-06 18:52:19 -07:00