Move plugin loading related methods to PluginLoader.

Fixed all tests and added more tests to plugin loader.

Change-Id: I97cb3779117d9b29b40e1107e39d6d1c953fcfdf
This commit is contained in:
Tao Zhou
2019-10-23 09:45:00 +02:00
parent 3a1947c38c
commit fd41e5566f
25 changed files with 1033 additions and 519 deletions

View File

@@ -48,7 +48,7 @@ limitations under the License.
let plugin;
Gerrit.install(p => { plugin = p; }, '0.1',
'http://test.com/plugins/testplugin/static/test.js');
sandbox.stub(Gerrit, '_arePluginsLoaded').returns(true);
Gerrit._loadPlugins([]);
settingsApi = plugin.settings();
});