| Index: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/test/util/TestUtilities.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/test/util/TestUtilities.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/test/util/TestUtilities.java
|
| index bbbd43952b7796608f7d520b9a191e89c474c161..ec7d73bc9c3a09c91c72ca6ac59f688947507662 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/test/util/TestUtilities.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/test/util/TestUtilities.java
|
| @@ -16,6 +16,7 @@ package com.google.dart.tools.core.test.util;
|
| import com.google.dart.engine.utilities.io.PrintStringWriter;
|
| import com.google.dart.tools.core.DartCore;
|
| import com.google.dart.tools.core.analysis.AnalysisTestUtilities;
|
| +import com.google.dart.tools.core.internal.model.DartModelManager;
|
| import com.google.dart.tools.core.model.DartProject;
|
|
|
| import junit.framework.Assert;
|
| @@ -460,6 +461,17 @@ public class TestUtilities {
|
| }
|
|
|
| /**
|
| + * Wait until all delta processor changes have been processed.
|
| + */
|
| + public static void processAllDeltaChanges() {
|
| + try {
|
| + DartModelManager.getInstance().processAllDeltaChanges(30 * 1000);
|
| + } catch (InterruptedException e) {
|
| +
|
| + }
|
| + }
|
| +
|
| + /**
|
| * Refresh the content of the workspace to be consistent with what's on disk.
|
| */
|
| public static void refreshWorkspace() {
|
|
|