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

Unified Diff: compiler/javatests/com/google/dart/compiler/PrettyErrorFormatterTest.java

Issue 8949055: Issue 250: Allow for GNU formatted errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks to drop 'gnu' and stuff library in message format Created 9 years 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: compiler/javatests/com/google/dart/compiler/PrettyErrorFormatterTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/PrettyErrorFormatterTest.java b/compiler/javatests/com/google/dart/compiler/PrettyErrorFormatterTest.java
index 1ed4ef39cd7c65b96df82224e1fcf6700e3962b7..b4a5967c70893ceabbb2b393a74263777c76cca1 100644
--- a/compiler/javatests/com/google/dart/compiler/PrettyErrorFormatterTest.java
+++ b/compiler/javatests/com/google/dart/compiler/PrettyErrorFormatterTest.java
@@ -4,6 +4,7 @@
package com.google.dart.compiler;
import com.google.common.base.Joiner;
+import com.google.dart.compiler.CompilerConfiguration.ErrorFormat;
import com.google.dart.compiler.parser.DartScanner.Location;
import com.google.dart.compiler.parser.DartScanner.Position;
import com.google.dart.compiler.resolver.TypeErrorCode;
@@ -224,8 +225,8 @@ public class PrettyErrorFormatterTest extends TestCase {
boolean printMachineProblems) {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
PrintStream printStream = new PrintStream(outputStream);
- ErrorFormatter errorFormatter =
- new PrettyErrorFormatter(printStream, useColor, printMachineProblems);
+ ErrorFormatter errorFormatter = new PrettyErrorFormatter(printStream, useColor,
+ printMachineProblems ? ErrorFormat.MACHINE : ErrorFormat.NORMAL);
errorFormatter.format(error);
return outputStream.toString();
}

Powered by Google App Engine
This is Rietveld 408576698