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

Unified Diff: pkg/analyzer_plugin/test/support/abstract_single_unit.dart

Issue 2871933003: Fix tests under Windows (TBR) (Closed)
Patch Set: Created 3 years, 7 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/analyzer_plugin/test/support/abstract_single_unit.dart
diff --git a/pkg/analyzer_plugin/test/support/abstract_single_unit.dart b/pkg/analyzer_plugin/test/support/abstract_single_unit.dart
index 7faabe2470382c0b719e30a6da6bc3c526e6302a..7a603b58dbd4f0136f285c8372a6a60be74fdb7c 100644
--- a/pkg/analyzer_plugin/test/support/abstract_single_unit.dart
+++ b/pkg/analyzer_plugin/test/support/abstract_single_unit.dart
@@ -19,7 +19,7 @@ class AbstractSingleUnitTest extends AbstractContextTest {
bool verifyNoTestUnitErrors = true;
String testCode;
- String testFile = '/test.dart';
+ String testFile;
Source testSource;
CompilationUnit testUnit;
CompilationUnitElement testUnitElement;
@@ -112,4 +112,10 @@ class AbstractSingleUnitTest extends AbstractContextTest {
testUnitElement = testUnit.element;
testLibraryElement = testUnitElement.library;
}
+
+ @override
+ void setUp() {
+ super.setUp();
+ testFile = provider.convertPath('/test.dart');
+ }
}
« 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