Merge remote-tracking branch 'origin/master'

This commit is contained in:
Leo Horie 2014-03-31 16:07:38 -04:00
commit 26a063e4c3
4 changed files with 18 additions and 1 deletions

View file

@ -432,7 +432,12 @@ test.print = function(print) {
print(test.failures[i].toString())
}
print("tests: " + test.total + "\nfailures: " + test.failures.length)
if (test.failures.length > 0) {
throw new Error(test.failures.length + " tests did not pass")
}
}
var mock = {}
mock.window = new function() {
var window = {}