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

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: Remove debug code. 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
« no previous file with comments | « tests/compiler/dart2js/mirrors_used_test.dart ('k') | tests/compiler/dart2js/resolution_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « tests/compiler/dart2js/mirrors_used_test.dart ('k') | tests/compiler/dart2js/resolution_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698