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

Unified Diff: pkg/analysis_server/test/analysis_notification_outline_test.dart

Issue 339933006: Fix for subscribing for notifications after analysis. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months 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: pkg/analysis_server/test/analysis_notification_outline_test.dart
diff --git a/pkg/analysis_server/test/analysis_notification_outline_test.dart b/pkg/analysis_server/test/analysis_notification_outline_test.dart
index c0a7024fb09fce613a5456f0af687f9a8e456bca..6fd7dcbc42064fc90ae69b40666ace54311df1b1 100644
--- a/pkg/analysis_server/test/analysis_notification_outline_test.dart
+++ b/pkg/analysis_server/test/analysis_notification_outline_test.dart
@@ -203,6 +203,23 @@ class B {
});
}
+ test_afterAnalysis() {
+ addTestFile('''
+class AAA {
+}
+class BBB {
+}
+''');
+ return waitForTasksFinished().then((_) {
+ expect(outline, isNull);
+ return prepareOutline(() {
+ _Outline unitOutline = outline;
+ List<_Outline> outlines = unitOutline.children;
+ expect(outlines, hasLength(2));
+ });
+ });
+ }
+
test_sourceRange_inClass() {
addTestFile('''
class A { // leftA

Powered by Google App Engine
This is Rietveld 408576698