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

Side by Side Diff: pkg/analysis_server/test/integration/completion_domain_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, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 library test.integration.completion.domain;
6
7 import 'dart:async';
8
9 import 'package:analysis_server/src/constants.dart';
10 import 'package:analysis_testing/reflective_tests.dart';
11 import 'package:unittest/unittest.dart';
12
13 import 'integration_tests.dart';
14
15 @ReflectiveTestCase()
16 class CompletionDomainIntegrationTest extends
17 AbstractAnalysisServerIntegrationTest {
18 fail_test_getSuggestions_string_var() {
19 // See dartbug.com/20188
20 String filename = 'test.dart';
21 String pathname = normalizePath(filename);
22 String text =
23 r'''
24 var test = '';
25 main() {
26 test.
27 }
28 ''';
29 writeFile(filename, text);
30 setAnalysisRoots(['']);
31
32 return analysisFinished.then((_) {
33 return server.send(COMPLETION_GET_SUGGESTIONS, {
34 'file': pathname,
35 'offset': text.indexOf('test.') + 'test.'.length
36 }).then((result) {
37 // Since the feature doesn't work yet, just pause for a second to
38 // collect the output of the analysis server, and then stop the test.
39 // TODO(paulberry): finish writing the integration test once the feature
40 // it more complete.
41 return new Future.delayed(new Duration(seconds: 1), () {
42 fail('test not completed yet');
43 });
44 });
45 });
46 }
47
48 test_placeholder() {
49 // The unit test framework freaks out if there are no tests, so this is a
50 // placeholder until we have a passing test.
51 // TODO(paulberry): remove this.
52 }
53 }
54
55 main() {
56 runReflectiveTests(CompletionDomainIntegrationTest);
57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698