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

Unified Diff: tests/standalone/src/StatusFileParserTest.dart

Issue 9323029: Fix error in standalone/StatusFileParserTest. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change name of getFile. Created 8 years, 11 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: tests/standalone/src/StatusFileParserTest.dart
diff --git a/tests/standalone/src/StatusFileParserTest.dart b/tests/standalone/src/StatusFileParserTest.dart
index d090657c1d562fd6a490e62f54a506918e7c213d..0943bd327e96698e24d25e1f16396bc9e70bdca5 100644
--- a/tests/standalone/src/StatusFileParserTest.dart
+++ b/tests/standalone/src/StatusFileParserTest.dart
@@ -24,7 +24,7 @@ void main() {
TestReadStatusFile("client/tests/dartc/dartc.status");
}
-String getFile(String filePath) {
+String fixedFilePath(String filePath) {
if (new File(filePath).existsSync()) {
return filePath;
} else {
@@ -33,10 +33,10 @@ String getFile(String filePath) {
}
void TestReadStatusFile(String filePath) {
- File file = new File(getFile(filePath));
+ File file = new File(fixedFilePath(filePath));
if (file.existsSync()) {
List<Section> sections = new List<Section>();
- ReadConfigurationInto(filePath, sections, () {
+ ReadConfigurationInto(file.name, sections, () {
Expect.isTrue(sections.length > 0);
});
}
« 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