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

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

Issue 263103003: Remove warnings from dart2js test-suite. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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: tests/compiler/dart2js/parser_test.dart
diff --git a/tests/compiler/dart2js/parser_test.dart b/tests/compiler/dart2js/parser_test.dart
index 552692281b8d5deeb3715bda5bfd657812063fce..9b47f8d07aa0ff7273bc725bd05e3b58507371e7 100644
--- a/tests/compiler/dart2js/parser_test.dart
+++ b/tests/compiler/dart2js/parser_test.dart
@@ -259,8 +259,8 @@ void testOperatorParse() {
FunctionExpression function = parseMember('operator -() => null;');
Send name = function.name.asSend();
Expect.isNotNull(name);
- Expect.stringEquals('operator', name.receiver.source);
- Expect.stringEquals('-', name.selector.source);
+ Expect.stringEquals('operator', name.receiver.toString());
+ Expect.stringEquals('-', name.selector.toString());
Expect.isTrue(function.parameters.isEmpty);
Expect.isNull(function.returnType);
Expect.isNull(function.getOrSet);
@@ -285,6 +285,8 @@ class Collector implements DiagnosticListener {
void log(message) {
print(message);
}
+
+ noSuchMethod(Invocation invocation) => throw 'unsupported operation';
}
void testMissingCloseParen() {

Powered by Google App Engine
This is Rietveld 408576698