Move legacy QUnit tests under Karma directory

Despite testing useful functionality, these tests were not being
executed by our CI infrastructure.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Load legacy test dependencies in karma.conf.js

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Port (non-async) legacy tests to Mocha/Chai syntax

* Comment out async tests.

Use Chai assert style: its API is an almost drop-in replacement for
QUnit assertions.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Load vendored jQuery Mockjax in karma.conf.js

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Port async legacy tests to Mocha/Chai syntax

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Fix wrong method call, breaking tests on Firefox

`Array.prototype.each()` is not a native JavaScript method:
`Array.prototype.forEach()` is the correct method.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Define openProject global in Karma test-helper

This is also needed for legacy tests to run green on Firefox (but not
Chrome or PhantomJS).

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Switch to Bower installed jQuery Mockjax

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Merge branch 'dev' into fix/reenable-legacy-qunit-tests
Configure karma-coverage for legacy code

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Remove commented QUnit assertions

[ci skip]

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Remove stray comment in karma.conf.js

[ci skip]
Merge pull request #1390 from opf/fix/reenable-legacy-qunit-tests