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

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

Issue 10892005: Revert "Support unary - operator." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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 | « dart/tests/compiler/dart2js/parser_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/compiler/dart2js/resolver_test.dart
diff --git a/dart/tests/compiler/dart2js/resolver_test.dart b/dart/tests/compiler/dart2js/resolver_test.dart
index df2320ffb2dac6173b5968f0972a0d5abde8ed9b..9f13539ebdb58ea43875bd90ecd2c536f31bd7ee 100644
--- a/dart/tests/compiler/dart2js/resolver_test.dart
+++ b/dart/tests/compiler/dart2js/resolver_test.dart
@@ -749,9 +749,8 @@ testToString() {
checkMemberResolved(compiler, 'C', buildSourceString('toString'));
}
-operatorName(op, isUnary) {
- return Elements.constructOperatorName(new SourceString(op), isUnary);
-}
+operatorName(op) => Elements.constructOperatorName(
+ const SourceString('operator'), new SourceString(op));
testIndexedOperator() {
final script = @"""
@@ -762,8 +761,8 @@ testIndexedOperator() {
main() { var c = new C(); c[0]++; }""";
final compiler = compileScript(script);
- checkMemberResolved(compiler, 'C', operatorName('[]', false));
- checkMemberResolved(compiler, 'C', operatorName('[]=', false));
+ checkMemberResolved(compiler, 'C', operatorName('[]'));
+ checkMemberResolved(compiler, 'C', operatorName('[]='));
}
testIncrementsAndDecrements() {
@@ -784,8 +783,8 @@ testIncrementsAndDecrements() {
}""";
final compiler = compileScript(script);
- checkMemberResolved(compiler, 'A', operatorName('+', false));
- checkMemberResolved(compiler, 'B', operatorName('+', false));
- checkMemberResolved(compiler, 'C', operatorName('-', false));
- checkMemberResolved(compiler, 'D', operatorName('-', false));
+ checkMemberResolved(compiler, 'A', operatorName('+'));
+ checkMemberResolved(compiler, 'B', operatorName('+'));
+ checkMemberResolved(compiler, 'C', operatorName('-'));
+ checkMemberResolved(compiler, 'D', operatorName('-'));
}
« no previous file with comments | « dart/tests/compiler/dart2js/parser_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698