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

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

Issue 10701091: Dartdoc and Apidoc updated to use dart2js through the mirror system. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed cf. rnystrom's comments. Created 8 years, 5 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/mirrors_test.dart
diff --git a/tests/compiler/dart2js/mirrors_test.dart b/tests/compiler/dart2js/mirrors_test.dart
index e82e7e49a3050ce98ba828efba62d0dd09c45977..5ef944c1f59e7a438dde3a456841ef3a7226b13d 100644
--- a/tests/compiler/dart2js/mirrors_test.dart
+++ b/tests/compiler/dart2js/mirrors_test.dart
@@ -99,14 +99,14 @@ void testFoo(MirrorSystem system, LibraryMirror helperLibrary,
Expect.isTrue(objectType.isObject, "Object is not Object");
Expect.isFalse(objectType.isDeclaration, "Object type is declaration");
Expect.isTrue(containsType(fooClass,
- computeSubdeclarations(system, objectType)),
+ computeSubdeclarations(objectType)),
"Class is not subclass of superclass");
var fooInterfaces = fooClass.interfaces();
Expect.isNotNull(fooInterfaces, "Interfaces map is null");
Expect.isTrue(fooInterfaces.isEmpty(), "Interfaces map is not empty");
- var fooSubdeclarations = computeSubdeclarations(system, fooClass);
+ var fooSubdeclarations = computeSubdeclarations(fooClass);
Expect.equals(1, count(fooSubdeclarations), "Unexpected subtype count");
for (var fooSubdeclaration in fooSubdeclarations) {
Expect.equals(fooClass, fooSubdeclaration.superclass().declaration,
@@ -172,14 +172,14 @@ void testBar(MirrorSystem system, LibraryMirror helperLibrary,
Expect.isTrue(objectType.isObject, "Object is not Object");
Expect.isFalse(objectType.isDeclaration, "Object type is declaration");
Expect.isTrue(containsType(barInterface,
- computeSubdeclarations(system, objectType)),
+ computeSubdeclarations(objectType)),
"Class is not subclass of superclass");
var barInterfaces = barInterface.interfaces();
Expect.isNotNull(barInterfaces, "Interfaces map is null");
Expect.isTrue(barInterfaces.isEmpty(), "Interfaces map is not empty");
- var barSubdeclarations = computeSubdeclarations(system, barInterface);
+ var barSubdeclarations = computeSubdeclarations(barInterface);
Expect.equals(1, count(barSubdeclarations), "Unexpected subtype count");
for (var barSubdeclaration in barSubdeclarations) {
Expect.isTrue(containsType(barInterface,
@@ -262,7 +262,7 @@ void testBaz(MirrorSystem system, LibraryMirror helperLibrary,
Expect.isTrue(objectType.isObject, "Object is not Object");
Expect.isFalse(objectType.isDeclaration, "Object type is declaration");
Expect.isTrue(containsType(bazClass,
- computeSubdeclarations(system, objectType)),
+ computeSubdeclarations(objectType)),
"Class is not subclass of superclass");
var bazInterfaces = bazClass.interfaces();
@@ -270,11 +270,11 @@ void testBaz(MirrorSystem system, LibraryMirror helperLibrary,
Expect.isTrue(!bazInterfaces.isEmpty(), "Interfaces map is empty");
for (var bazInterface in bazInterfaces.getValues()) {
Expect.isTrue(containsType(bazClass,
- computeSubdeclarations(system, objectType)),
+ computeSubdeclarations(objectType)),
"Class is not subclass of superinterface");
}
- var bazSubdeclarations = computeSubdeclarations(system, bazClass);
+ var bazSubdeclarations = computeSubdeclarations(bazClass);
Expect.equals(0, count(bazSubdeclarations), "Unexpected subtype count");
var barInterface = findMirror(bazInterfaces, "Bar");

Powered by Google App Engine
This is Rietveld 408576698