Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/test/util/TestUtilities.java

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698