Add tests for contextMatchesRules and IOSupport.readKeybindingContexts

This commit is contained in:
Alex Dima
2016-01-06 12:05:23 +01:00
parent 884e657d42
commit ff2b4fb055
3 changed files with 61 additions and 14 deletions

View File

@@ -178,16 +178,18 @@ function main() {
});
// replace the default unexpected error handler to be useful during tests
loader('vs/base/common/errors').setUnexpectedErrorHandler(function (err) {
try {
throw new Error('oops');
} catch (e) {
unexpectedErrors.push((err && err.message ? err.message : err) + '\n' + e.stack);
}
});
loader(['vs/base/common/errors'], function(errors) {
errors.setUnexpectedErrorHandler(function (err) {
try {
throw new Error('oops');
} catch (e) {
unexpectedErrors.push((err && err.message ? err.message : err) + '\n' + e.stack);
}
});
// fire up mocha
run();
// fire up mocha
run();
});
});
}