Fix unit test for reading a utf-8 file as binary.
This test was broken because webkit browsers report the request as a string
instead of a byte array. The string has to be converted back to a byte array
in such cases.
Only load a class if it has not yet been defined.
Add a the ability to run tests outside of the tests.js script.
This is preparation for using Karma to run the tests.
Add minimal karma tester for PhantonJS.
See tools/karma.conf.js for more information.
Add support for junit output.
Add special check for null values.
In JavaScript, typeof null is "object". The added check avoid treating a null value as an object.
Pass http requests from the tests to a special small server.
Karma has no support for PUT and DELETE. The simplest workaround is to start
as small server and proxy to it for http requests from the tests.