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

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

Issue 9479034: Update test.dart for detection output of machine formatted errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update test.dart for detection output of machine formatted errors Created 8 years, 10 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: 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 c0855fa3e3f23f3d418ff4f14e62ee99f41dd012..c75a0ee8f9f262ba613d57fa511073d5fd8b5eaf 100644
--- a/compiler/javatests/com/google/dart/compiler/PrettyErrorFormatterTest.java
+++ b/compiler/javatests/com/google/dart/compiler/PrettyErrorFormatterTest.java
@@ -223,7 +223,7 @@ public class PrettyErrorFormatterTest extends TestCase {
String errorString = getErrorString(error, false, true);
assertEquals(
Joiner.on("\n").join(
- "WARNING:STATIC_TYPE:NO_SUCH_TYPE:my/path/Test.dart:2:3:4: no such type \"Foo\"",
+ "WARNING|STATIC_TYPE|NO_SUCH_TYPE|my/path/Test.dart|2|3|4|no such type \"Foo\"",
" 1: lineAAA",
" 2: lineBBB",
" ~~~~",
@@ -242,7 +242,7 @@ public class PrettyErrorFormatterTest extends TestCase {
assertEquals(
Joiner.on("\n").join(
WARNING_BOLD_COLOR
- + "WARNING:STATIC_TYPE:NO_SUCH_TYPE:my/path/Test.dart:2:3:4: no such type \"Foo\""
+ + "WARNING|STATIC_TYPE|NO_SUCH_TYPE|my/path/Test.dart|2|3|4|no such type \"Foo\""
+ NO_COLOR,
" 1: lineAAA",
" 2: li" + WARNING_COLOR + "neBB" + NO_COLOR + "B",
@@ -254,7 +254,7 @@ public class PrettyErrorFormatterTest extends TestCase {
assertEquals(
Joiner.on("\n").join(
ERROR_BOLD_COLOR
- + "ERROR:RESOLVER:NO_SUCH_TYPE:my/path/Test.dart:2:3:4: no such type \"Foo\""
+ + "ERROR|RESOLVER|NO_SUCH_TYPE|my/path/Test.dart|2|3|4|no such type \"Foo\""
+ NO_COLOR,
" 1: lineAAA",
" 2: li" + ERROR_COLOR + "neBB" + NO_COLOR + "B",

Powered by Google App Engine
This is Rietveld 408576698