Scripting: add test for loading configuration for gradle scripts
This commit is contained in:
+4
@@ -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) },
|
||||
|
||||
+2
@@ -53,4 +53,6 @@ class TestingBackgroundExecutor internal constructor(
|
||||
|
||||
return copy.isNotEmpty()
|
||||
}
|
||||
|
||||
fun noBackgroundTasks(): Boolean = backgroundQueue.isEmpty()
|
||||
}
|
||||
Reference in New Issue
Block a user