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

Unified Diff: tests/compiler/dart2js/unparser2_test.dart

Issue 1864433004: Repeats and fixes the changes landed & reverted as CL 1789553003. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updates to external dependents Created 4 years, 8 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
« no previous file with comments | « tests/compiler/dart2js/type_checker_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/unparser2_test.dart
diff --git a/tests/compiler/dart2js/unparser2_test.dart b/tests/compiler/dart2js/unparser2_test.dart
index 8ede8c939d762f5c82718fc2efa935c19fbafa9a..7053e6a84650e8c03c92534ece86d4fac8c67ac3 100644
--- a/tests/compiler/dart2js/unparser2_test.dart
+++ b/tests/compiler/dart2js/unparser2_test.dart
@@ -19,6 +19,8 @@ import "package:compiler/src/elements/modelx.dart"
LibraryElementX;
import "package:compiler/src/script.dart";
+import "options_helper.dart";
+
main() {
testClassDef();
testClass1Field();
@@ -84,7 +86,6 @@ void compareCode(String code, {String expectedResult}) {
Expect.equals(expectedResult, doUnparse(code));
}
-
String doUnparse(String source) {
MessageCollector diagnosticListener = new MessageCollector();
Script script = new Script(null, null, null);
@@ -94,7 +95,7 @@ String doUnparse(String source) {
Token beginToken = scanner.tokenize();
NodeListener listener = new NodeListener(
const ScannerOptions(), diagnosticListener, element);
- Parser parser = new Parser(listener);
+ Parser parser = new Parser(listener, new MockParserOptions());
parser.parseUnit(beginToken);
Node node = listener.popNode();
Expect.isTrue(listener.nodes.isEmpty);
« no previous file with comments | « tests/compiler/dart2js/type_checker_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698