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

Side by Side Diff: pkg/analysis_server/test/completion_test.dart

Issue 1113063005: improve import suggestion (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.completion.support; 5 library test.completion.support;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
(...skipping 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 failingTests: '1'); 1975 failingTests: '1');
1976 1976
1977 // operators in return 1977 // operators in return
1978 buildTests('test016', 1978 buildTests('test016',
1979 '''class X {dynamic f(a,b,c) {return a + b * c !1;}}''', <String>[ 1979 '''class X {dynamic f(a,b,c) {return a + b * c !1;}}''', <String>[
1980 "1+==" 1980 "1+=="
1981 ], failingTests: '1'); 1981 ], failingTests: '1');
1982 1982
1983 // keywords 1983 // keywords
1984 buildTests('test017', ''' 1984 buildTests('test017', '''
1985 !1library foo; 1985 !1!2import 'x' !5as r;
1986 !2import 'x' !5as r;
1987 !3export '!8uri' !6hide Q !7show X; 1986 !3export '!8uri' !6hide Q !7show X;
1988 !4part 'x';''', <String>[ 1987 !4part 'x';''', <String>[
1989 "1+library", 1988 "1+library",
1990 "2+import", 1989 "2+import '!';",
1991 "3+export", 1990 "3+export",
1992 "4+part", 1991 "4+part",
1993 "5+as", 1992 "5+as",
1994 "6+hide", 1993 "6+hide",
1995 "7+show", 1994 "7+show",
1996 "8-null" 1995 "8-null"
1997 ], failingTests: '1567'); 1996 ], failingTests: '567');
1998 1997
1999 // keywords 1998 // keywords
2000 buildTests('test018', '''!1part !2of foo;''', <String>["1+part", "2+of"], 1999 buildTests('test018', '''!1part !2of foo;''', <String>["1+part", "2+of"],
2001 failingTests: '2'); 2000 failingTests: '2');
2002 2001
2003 buildTests('test019', ''' 2002 buildTests('test019', '''
2004 var truefalse = 0; 2003 var truefalse = 0;
2005 var falsetrue = 1; 2004 var falsetrue = 1;
2006 main() { 2005 main() {
2007 var foo = true!1 2006 var foo = true!1
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 } else { 2285 } else {
2287 ++expectedPassCount; 2286 ++expectedPassCount;
2288 tester(testName, () { 2287 tester(testName, () {
2289 CompletionTestCase test = new CompletionTestCase(); 2288 CompletionTestCase test = new CompletionTestCase();
2290 return test.runTest(spec, extraFiles); 2289 return test.runTest(spec, extraFiles);
2291 }); 2290 });
2292 } 2291 }
2293 } 2292 }
2294 } 2293 }
2295 } 2294 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698