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

Unified Diff: pkg/analysis_server/test/reflective_tests.dart

Issue 321683002: Fix for return type to fix build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/reflective_tests.dart
diff --git a/pkg/analysis_server/test/reflective_tests.dart b/pkg/analysis_server/test/reflective_tests.dart
index 9be27ed1104e46f3c731e7b15d3336eb0857802c..622ab5fe6e58a81493065ee309897935ede5ee06 100644
--- a/pkg/analysis_server/test/reflective_tests.dart
+++ b/pkg/analysis_server/test/reflective_tests.dart
@@ -49,7 +49,7 @@ void runReflectiveTests(Type type) {
if (memberName.startsWith('test_')) {
String testName = memberName.substring('test_'.length);
test(testName, () {
- _runTest(classMirror, symbol);
+ return _runTest(classMirror, symbol);
});
return;
}
@@ -57,13 +57,13 @@ void runReflectiveTests(Type type) {
if (memberName.startsWith('solo_test_')) {
String testName = memberName.substring('solo_test_'.length);
solo_test(testName, () {
- _runTest(classMirror, symbol);
+ return _runTest(classMirror, symbol);
});
}
});
}
-void _runTest(ClassMirror classMirror, Symbol symbol) {
+_runTest(ClassMirror classMirror, Symbol symbol) {
InstanceMirror instanceMirror = classMirror.newInstance(new Symbol(''), []);
_invokeSymbolIfExists(instanceMirror, #setUp);
var testReturn = instanceMirror.invoke(symbol, []).reflectee;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698