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

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

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 2 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/patch_test.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index 96c820a35b471e0892b11b4983b2a14a41d374a1..4e8e60813e9249e602559fabfc8a5e5877170427 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -88,7 +88,7 @@ testTypeVariables() {
length(type.arguments));
int index = 0;
Link<DartType> arguments = type.arguments;
- while (!arguments.isEmpty()) {
+ while (!arguments.isEmpty) {
Expect.equals(true, index < expectedElements.length);
Expect.equals(expectedElements[index], arguments.head.element);
index++;
@@ -436,8 +436,8 @@ testSuperclass() {
ClassElement barElement = compiler.mainApp.find(buildSourceString('Bar'));
Expect.equals(barElement.computeType(compiler),
fooElement.supertype);
- Expect.isTrue(fooElement.interfaces.isEmpty());
- Expect.isTrue(barElement.interfaces.isEmpty());
+ Expect.isTrue(fooElement.interfaces.isEmpty);
+ Expect.isTrue(barElement.interfaces.isEmpty);
}
testVarSuperclass() {
@@ -471,7 +471,7 @@ testOneInterface() {
ClassElement barElement = compiler.mainApp.find(buildSourceString('Bar'));
Expect.equals(null, barElement.supertype);
- Expect.isTrue(barElement.interfaces.isEmpty());
+ Expect.isTrue(barElement.interfaces.isEmpty);
Expect.equals(barElement.computeType(compiler),
fooElement.interfaces.head);
@@ -733,7 +733,7 @@ at(Link link, int index) => (index == 0) ? link.head : at(link.tail, index - 1);
List<String> asSortedStrings(Link link) {
List<String> result = <String>[];
- for (; !link.isEmpty(); link = link.tail) result.add(link.head.toString());
+ for (; !link.isEmpty; link = link.tail) result.add(link.head.toString());
result.sort((s1, s2) => s1.compareTo(s2));
return result;
}
« no previous file with comments | « tests/compiler/dart2js/patch_test.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698