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

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

Issue 749083005: Keep full test_ method names in reflective tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 | pkg/analyzer/test/reflective_tests.dart » ('j') | 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 685bd130982a3aac5c83a5f12f1b4de33fb252b1..63a439826801466a5d3b33e69ef41922e44db2cd 100644
--- a/pkg/analysis_server/test/reflective_tests.dart
+++ b/pkg/analysis_server/test/reflective_tests.dart
@@ -39,16 +39,14 @@ void runReflectiveTests(Type type) {
String memberName = MirrorSystem.getName(symbol);
// test_
if (memberName.startsWith('test_')) {
- String testName = memberName.substring('test_'.length);
- test(testName, () {
+ test(memberName, () {
return _runTest(classMirror, symbol);
});
return;
}
// solo_test_
if (memberName.startsWith('solo_test_')) {
- String testName = memberName.substring('solo_test_'.length);
- solo_test(testName, () {
+ solo_test(memberName, () {
return _runTest(classMirror, symbol);
});
}
« no previous file with comments | « no previous file | pkg/analyzer/test/reflective_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698