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

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

Issue 513023002: Step one towards stable error messages with details: (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
Index: pkg/polymer/test/build/all_phases_test.dart
diff --git a/pkg/polymer/test/build/all_phases_test.dart b/pkg/polymer/test/build/all_phases_test.dart
index 869a98f8cd95304b3c018c27e99a35e25e1c20fb..afda3564f1eb289fe65d968a6500a45ebacc63b6 100644
--- a/pkg/polymer/test/build/all_phases_test.dart
+++ b/pkg/polymer/test/build/all_phases_test.dart
@@ -6,8 +6,7 @@ library polymer.test.build.all_phases_test;
import 'package:code_transformers/tests.dart' show testingDartSdkDirectory;
import 'package:polymer/src/build/common.dart';
-import 'package:polymer/src/build/linter.dart' show USE_POLYMER_HTML,
- USE_INIT_DART, ONLY_ONE_TAG;
+import 'package:polymer/src/build/messages.dart';
import 'package:polymer/src/build/script_compactor.dart' show MAIN_HEADER;
import 'package:polymer/transformer.dart';
import 'package:smoke/codegen/generator.dart' show DEFAULT_IMPORTS;
@@ -23,7 +22,7 @@ void main() {
testPhases('no changes', phases, {
'a|web/test.html': '<!DOCTYPE html><html></html>',
}, {}, [
- 'warning: $USE_INIT_DART'
+ 'warning: ${useInitDart.snippet}'
]);
testPhases('observable changes', phases, {
@@ -175,9 +174,9 @@ void main() {
}, [
// These should not be emitted multiple times. See:
// https://code.google.com/p/dart/issues/detail?id=17197
- 'warning: $ONLY_ONE_TAG (web/test.html 2 0)',
- 'warning: $ONLY_ONE_TAG (web/test.html 18 0)',
- 'warning: $ONLY_ONE_TAG (web/test.html 34 0)',
+ 'warning: ${onlyOneTag.snippet} (web/test.html 2 0)',
+ 'warning: ${onlyOneTag.snippet} (web/test.html 18 0)',
+ 'warning: ${onlyOneTag.snippet} (web/test.html 34 0)',
'warning: Script file at "d.dart" not found. (web/test.html 34 0)',
]);

Powered by Google App Engine
This is Rietveld 408576698