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('-')); |
} |