Scripting: add test for loading configuration for gradle scripts

This commit is contained in:
Natalia Selezneva
2019-12-10 09:13:44 +03:00
parent 424a2c72b2
commit d68c3584f2
12 changed files with 261 additions and 47 deletions
@@ -52,6 +52,10 @@ internal class ScriptChangesNotifier(
val listener = getListener(project, file) ?: return
if (ApplicationManager.getApplication().isUnitTestMode) {
listener.documentChanged(file, updater)
}
scriptsQueue.cancelAllRequests()
scriptsQueue.addRequest(
{ listener.documentChanged(file, updater) },
@@ -53,4 +53,6 @@ class TestingBackgroundExecutor internal constructor(
return copy.isNotEmpty()
}
fun noBackgroundTasks(): Boolean = backgroundQueue.isEmpty()
}