Remove LanguageIdentifier and ensure tests dispose instantiated LanguagesRegistry objects

This commit is contained in:
Alex Dima
2021-10-18 10:29:16 +02:00
parent 74541dceec
commit 11862795ea
228 changed files with 2402 additions and 1667 deletions

View File

@@ -166,6 +166,16 @@ function loadTests(opts) {
});
});
let assertCleanState;
loader.require(['vs/workbench/test/electron-browser/testing'], function(testing) {
assertCleanState = testing.assertCleanState;
suite('Tests are using suiteSetup and setup correctly', () => {
test('assertCleanState - check that registries are clean at the start of test running', () => {
assertCleanState();
});
});
});
return loadTestModules(opts).then(() => {
suite('Unexpected Errors & Loader Errors', function () {
test('should not have unexpected errors', function () {
@@ -178,6 +188,10 @@ function loadTests(opts) {
assert.ok(false, errors);
}
});
test('assertCleanState - check that registries are clean and objects are disposed at the end of test running', () => {
assertCleanState();
});
});
});
}