mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Add tests for contextMatchesRules and IOSupport.readKeybindingContexts
This commit is contained in:
20
test/all.js
20
test/all.js
@@ -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();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user