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

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

Issue 1054363003: replace request.node with request.target (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 5 years, 8 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 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after
1828 "7+Aclass", 1828 "7+Aclass",
1829 "7-Bclass", 1829 "7-Bclass",
1830 "8+Ctype", 1830 "8+Ctype",
1831 "9+abstract", 1831 "9+abstract",
1832 "A+with", 1832 "A+with",
1833 "B+Eclass", 1833 "B+Eclass",
1834 "B-Dclass", 1834 "B-Dclass",
1835 "B-Ctype", 1835 "B-Ctype",
1836 "C+Bclass", 1836 "C+Bclass",
1837 "C-Eclass" 1837 "C-Eclass"
1838 ], failingTests: '12345679ABC'); 1838 ], failingTests: '23467ABC');
1839 1839
1840 // keywords 1840 // keywords
1841 buildTests('test009', ''' 1841 buildTests('test009', '''
1842 typedef !1dy!2namic TestFn1(); 1842 typedef !1dy!2namic TestFn1();
1843 typedef !3vo!4id TestFn2(); 1843 typedef !3vo!4id TestFn2();
1844 typ!7edef !5n!6''', <String>[ 1844 typ!7edef !5n!6''', <String>[
1845 "1+void", 1845 "1+void",
1846 "1+TestFn2", 1846 "1+TestFn2",
1847 "2+dynamic", 1847 "2+dynamic",
1848 "2-void", 1848 "2-void",
1849 "3+dynamic", 1849 "3+dynamic",
1850 "4+void", 1850 "4+void",
1851 "4-dynamic", 1851 "4-dynamic",
1852 "5+TestFn2", 1852 "5+TestFn2",
1853 "6+num", 1853 "6+num",
1854 "7+typedef" 1854 "7+typedef"
1855 ], failingTests: '12347'); 1855 ], failingTests: '1234');
1856 1856
1857 buildTests('test010', ''' 1857 buildTests('test010', '''
1858 class test !8<!1t !2 !3extends String,!4 List,!5 !6>!7 {} 1858 class test !8<!1t !2 !3extends String,!4 List,!5 !6>!7 {}
1859 class tezetst !9<!BString,!C !DList>!A {}''', <String>[ 1859 class tezetst !9<!BString,!C !DList>!A {}''', <String>[
1860 "1-String", 1860 "1-String",
1861 "1-List", 1861 "1-List",
1862 "1-test", 1862 "1-test",
1863 "2-String", 1863 "2-String",
1864 "2-test", 1864 "2-test",
1865 "3+extends", 1865 "3+extends",
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
1962 "B+on", 1962 "B+on",
1963 "C+catch", 1963 "C+catch",
1964 "D+var", 1964 "D+var",
1965 "E+void", 1965 "E+void",
1966 "F+assert", 1966 "F+assert",
1967 "G+continue", 1967 "G+continue",
1968 "H+break", 1968 "H+break",
1969 "J+if", 1969 "J+if",
1970 "K+else", 1970 "K+else",
1971 "L+return" 1971 "L+return"
1972 ], failingTests: '123456789ABCDEFGHJKL'); 1972 ], failingTests: '59BCDEHK');
1973 1973
1974 // operators in function 1974 // operators in function
1975 buildTests('test015', '''f(a,b,c) => a + b * c !1;''', <String>["1+=="], 1975 buildTests('test015', '''f(a,b,c) => a + b * c !1;''', <String>["1+=="],
1976 failingTests: '1'); 1976 failingTests: '1');
1977 1977
1978 // operators in return 1978 // operators in return
1979 buildTests('test016', 1979 buildTests('test016',
1980 '''class X {dynamic f(a,b,c) {return a + b * c !1;}}''', <String>[ 1980 '''class X {dynamic f(a,b,c) {return a + b * c !1;}}''', <String>[
1981 "1+==" 1981 "1+=="
1982 ], failingTests: '1'); 1982 ], failingTests: '1');
1983 1983
1984 // keywords 1984 // keywords
1985 buildTests('test017', ''' 1985 buildTests('test017', '''
1986 !1library foo; 1986 !1library foo;
1987 !2import 'x' !5as r; 1987 !2import 'x' !5as r;
1988 !3export '!8uri' !6hide Q !7show X; 1988 !3export '!8uri' !6hide Q !7show X;
1989 !4part 'x';''', <String>[ 1989 !4part 'x';''', <String>[
1990 "1+library", 1990 "1+library",
1991 "2+import", 1991 "2+import",
1992 "3+export", 1992 "3+export",
1993 "4+part", 1993 "4+part",
1994 "5+as", 1994 "5+as",
1995 "6+hide", 1995 "6+hide",
1996 "7+show", 1996 "7+show",
1997 "8-null" 1997 "8-null"
1998 ], failingTests: '1234567'); 1998 ], failingTests: '1567');
1999 1999
2000 // keywords 2000 // keywords
2001 buildTests('test018', '''!1part !2of foo;''', <String>["1+part", "2+of"], 2001 buildTests('test018', '''!1part !2of foo;''', <String>["1+part", "2+of"],
2002 failingTests: '12'); 2002 failingTests: '2');
2003 2003
2004 buildTests('test019', ''' 2004 buildTests('test019', '''
2005 var truefalse = 0; 2005 var truefalse = 0;
2006 var falsetrue = 1; 2006 var falsetrue = 1;
2007 main() { 2007 main() {
2008 var foo = true!1 2008 var foo = true!1
2009 }''', <String>["1+true", "1+truefalse", "1-falsetrue"], failingTests: '1'); 2009 }''', <String>["1+true", "1+truefalse", "1-falsetrue"], failingTests: '1');
2010 2010
2011 buildTests('test020', '''var x = null.!1''', <String>["1+toString"], 2011 buildTests('test020', '''var x = null.!1''', <String>["1+toString"],
2012 failingTests: '1'); 2012 failingTests: '1');
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
2289 } else { 2289 } else {
2290 ++expectedPassCount; 2290 ++expectedPassCount;
2291 tester(testName, () { 2291 tester(testName, () {
2292 CompletionTestCase test = new CompletionTestCase(); 2292 CompletionTestCase test = new CompletionTestCase();
2293 return test.runTest(spec, extraFiles); 2293 return test.runTest(spec, extraFiles);
2294 }); 2294 });
2295 } 2295 }
2296 } 2296 }
2297 } 2297 }
2298 } 2298 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698