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

Unified Diff: dart/tests/try/poi/poi_find_test.dart

Issue 388813002: Serialize scope information at point-of-interest. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Skip serialization test in browsers Created 6 years, 5 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: dart/tests/try/poi/poi_find_test.dart
diff --git a/dart/tests/try/poi/poi_find_test.dart b/dart/tests/try/poi/poi_find_test.dart
index a477784db7bb64f76e2e06bb6e59fccb63b82398..3830020c65ddb0d32749660fc6c3dc0ae44b2dc1 100644
--- a/dart/tests/try/poi/poi_find_test.dart
+++ b/dart/tests/try/poi/poi_find_test.dart
@@ -21,9 +21,16 @@ import 'package:expect/expect.dart';
import 'package:compiler/implementation/elements/elements.dart' show
Element;
+import 'package:compiler/implementation/source_file_provider.dart' show
+ FormattingDiagnosticHandler;
+
Future testPoi() {
Uri script = Platform.script.resolve('data/empty_main.dart');
- return poi.runPoi(script, 225).then((Element element) {
+ FormattingDiagnosticHandler handler = new FormattingDiagnosticHandler();
+ handler.verbose = true;
+
+ Future future = poi.runPoi(script, 225, handler.provider, handler);
+ return future.then((Element element) {
Uri foundScript = element.compilationUnit.script.resourceUri;
Expect.stringEquals('$script', '$foundScript');
Expect.stringEquals('main', element.name);

Powered by Google App Engine
This is Rietveld 408576698