Chromium Code Reviews| Index: pkg/analysis_server/test/integration/analysis_error_int_test.dart |
| diff --git a/pkg/analysis_server/test/integration/analysis_error_int_test.dart b/pkg/analysis_server/test/integration/analysis_error_int_test.dart |
| index 662957ac82414f27acdfb28e59425f7cb6260f3c..4ba22f587c8001f296cf17a78e9524beda9b9551 100644 |
| --- a/pkg/analysis_server/test/integration/analysis_error_int_test.dart |
| +++ b/pkg/analysis_server/test/integration/analysis_error_int_test.dart |
| @@ -14,14 +14,15 @@ import 'protocol_matchers.dart'; |
| class AnalysisErrorIntegrationTest extends AbstractAnalysisServerIntegrationTest |
| { |
| test_detect_simple_error() { |
| - writeFile('test.dart', |
| + String pathname = sourcePath('test.dart'); |
| + writeFile(pathname, |
| ''' |
| main() { |
| var x // parse error: missing ';' |
| }'''); |
| - setAnalysisRoots(['']); |
| + standardAnalysisRoot(); |
| return analysisFinished.then((_) { |
| - String filePath = normalizePath('test.dart'); |
| + String filePath = pathname; |
|
Brian Wilkerson
2014/08/04 23:26:51
I'm not sure what the value of defining a local va
Paul Berry
2014/08/05 03:48:45
Oops, not sure what I was thinking there. Fixed.
|
| expect(currentAnalysisErrors[filePath], isList); |
| List errors = currentAnalysisErrors[filePath]; |
| expect(errors, hasLength(1)); |