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

Unified Diff: pkg/analysis_server/test/integration/analysis_error_inttest.dart

Issue 426923002: Start running the analysis server integration tests by changing the name to end with _test.dart (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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
Index: pkg/analysis_server/test/integration/analysis_error_inttest.dart
===================================================================
--- pkg/analysis_server/test/integration/analysis_error_inttest.dart (revision 38658)
+++ pkg/analysis_server/test/integration/analysis_error_inttest.dart (working copy)
@@ -1,35 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library test.integration.analysis.error;
-
-import 'package:analysis_testing/reflective_tests.dart';
-import 'package:unittest/unittest.dart';
-
-import 'integration_tests.dart';
-
-@ReflectiveTestCase()
-class AnalysisErrorIntegrationTest extends AbstractAnalysisServerIntegrationTest
- {
- test_detect_simple_error() {
- writeFile('test.dart',
- '''
-main() {
- var x // parse error: missing ';'
-}''');
- setAnalysisRoots(['']);
- return analysisFinished.then((_) {
- String filePath = normalizePath('test.dart');
- expect(currentAnalysisErrors[filePath], isList);
- List errors = currentAnalysisErrors[filePath];
- expect(errors, hasLength(1));
- expect(errors[0], isAnalysisError);
- expect(errors[0]['location']['file'], equals(filePath));
- });
- }
-}
-
-main() {
- runReflectiveTests(AnalysisErrorIntegrationTest);
-}

Powered by Google App Engine
This is Rietveld 408576698