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

Unified Diff: pkg/polymer/test/build/common.dart

Issue 543963002: Link to stable-errors site from pub-build messages on the command line. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « pkg/polymer/lib/src/build/script_compactor.dart ('k') | pkg/polymer/test/build/linter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/build/common.dart
diff --git a/pkg/polymer/test/build/common.dart b/pkg/polymer/test/build/common.dart
index 13411e66eda9801c2895eba5e736b1eb733f0437..c50efa64db18d370ac0bcffb82769eaa06420722 100644
--- a/pkg/polymer/test/build/common.dart
+++ b/pkg/polymer/test/build/common.dart
@@ -74,7 +74,12 @@ class TestHelper implements PackageProvider {
// We only check messages when an expectation is provided.
if (messages == null) return;
- var msg = '${entry.level.name.toLowerCase()}: ${entry.message}';
+ var errorLink = new RegExp(
+ ' See http://goo.gl/5HPeuP#polymer_[0-9]* for details.');
+ var text = entry.message;
+ var newText = text.replaceFirst(errorLink, '');
+ expect(text != newText, isTrue);
+ var msg = '${entry.level.name.toLowerCase()}: ${newText}';
var span = entry.span;
var spanInfo = span == null ? '' :
' (${span.sourceUrl} ${span.start.line} ${span.start.column})';
« no previous file with comments | « pkg/polymer/lib/src/build/script_compactor.dart ('k') | pkg/polymer/test/build/linter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698