diff options
Diffstat (limited to 'polygerrit-ui/app/test/common-test-setup.html')
-rw-r--r-- | polygerrit-ui/app/test/common-test-setup.html | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/polygerrit-ui/app/test/common-test-setup.html b/polygerrit-ui/app/test/common-test-setup.html index d901beca3d..92b99e360e 100644 --- a/polygerrit-ui/app/test/common-test-setup.html +++ b/polygerrit-ui/app/test/common-test-setup.html @@ -1,5 +1,6 @@ <!DOCTYPE html> <!-- +@license Copyright (C) 2017 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); @@ -34,7 +35,7 @@ limitations under the License. }); </script> <script> - // eslint-disable-next-line no-unused-vars + /* eslint-disable no-unused-vars */ const mockPromise = () => { let res; const promise = new Promise(resolve => { @@ -43,19 +44,16 @@ limitations under the License. promise.resolve = res; return promise; }; + const isHidden = el => getComputedStyle(el).display === 'none'; + /* eslint-enable no-unused-vars */ </script> <script> (function() { setup(() => { if (!window.Gerrit) { return; } - Gerrit._pluginsPending = -1; - Gerrit._allPluginsPromise = undefined; if (Gerrit._resetPlugins) { Gerrit._resetPlugins(); } - if (Gerrit._endpoints) { - Gerrit._endpoints = new GrPluginEndpoints(); - } }); })(); </script> |