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

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

Issue 2342473002: improve import URI completions at EOF (Closed)
Patch Set: update tests Created 4 years, 3 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
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 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 ''' 1342 '''
1343 import 'dart:math 1343 import 'dart:math
1344 import 'dart:_chrome 1344 import 'dart:_chrome
1345 import 'dart:_collection.dev 1345 import 'dart:_collection.dev
1346 export 'dart:!1''', 1346 export 'dart:!1''',
1347 <String>[ 1347 <String>[
1348 "1+dart:core", 1348 "1+dart:core",
1349 "1+dart:math", 1349 "1+dart:math",
1350 "1-dart:_chrome", 1350 "1-dart:_chrome",
1351 "1-dart:_collection.dev" 1351 "1-dart:_collection.dev"
1352 ], 1352 ]);
1353 failingTests: '1');
1354 1353
1355 buildTests( 1354 buildTests(
1356 'testCompletion_export_noStringLiteral_noSemicolon', 1355 'testCompletion_export_noStringLiteral_noSemicolon',
1357 ''' 1356 '''
1358 import !1 1357 import !1
1359 1358
1360 class A {}''', 1359 class A {}''',
1361 <String>["1+'dart:!';", "1+'package:!';"], 1360 <String>["1+'dart:!';", "1+'package:!';"],
1362 failingTests: '1'); 1361 failingTests: '1');
1363 1362
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 ''' 1489 '''
1491 import 'dart:math 1490 import 'dart:math
1492 import 'dart:_chrome 1491 import 'dart:_chrome
1493 import 'dart:_collection.dev 1492 import 'dart:_collection.dev
1494 import 'dart:!1''', 1493 import 'dart:!1''',
1495 <String>[ 1494 <String>[
1496 "1+dart:core", 1495 "1+dart:core",
1497 "1+dart:math", 1496 "1+dart:math",
1498 "1-dart:_chrome", 1497 "1-dart:_chrome",
1499 "1-dart:_collection.dev" 1498 "1-dart:_collection.dev"
1500 ], 1499 ]);
1501 failingTests: '1');
1502 1500
1503 buildTests( 1501 buildTests(
1504 'testCompletion_import_hasStringLiteral_noSemicolon', 1502 'testCompletion_import_hasStringLiteral_noSemicolon',
1505 ''' 1503 '''
1506 import '!1' 1504 import '!1'
1507 1505
1508 class A {}''', 1506 class A {}''',
1509 <String>["1+dart:!", "1+package:!"]); 1507 <String>["1+dart:!", "1+package:!"]);
1510 1508
1511 buildTests( 1509 buildTests(
(...skipping 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2991 } else { 2989 } else {
2992 ++expectedPassCount; 2990 ++expectedPassCount;
2993 tester(testName, () { 2991 tester(testName, () {
2994 CompletionTestCase test = new CompletionTestCase(); 2992 CompletionTestCase test = new CompletionTestCase();
2995 return test.runTest(spec, extraFiles); 2993 return test.runTest(spec, extraFiles);
2996 }); 2994 });
2997 } 2995 }
2998 } 2996 }
2999 } 2997 }
3000 } 2998 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698