| OLD | NEW |
| 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 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1086 var c; | 1086 var c; |
| 1087 if(c) { | 1087 if(c) { |
| 1088 x = new A(); | 1088 x = new A(); |
| 1089 } else { | 1089 } else { |
| 1090 x = new B(); | 1090 x = new B(); |
| 1091 } | 1091 } |
| 1092 x.!1; | 1092 x.!1; |
| 1093 }''', <String>["1+a", "1-x", "1-y"], failingTests: '1'); | 1093 }''', <String>["1+a", "1-x", "1-y"], failingTests: '1'); |
| 1094 | 1094 |
| 1095 buildTests('testCompletion_import', ''' | 1095 buildTests('testCompletion_import', ''' |
| 1096 import '!1';''', <String>["1+dart:!", "1+package:!"], failingTests: '1'); | 1096 import '!1';''', <String>["1+dart:!", "1+package:!"]); |
| 1097 | 1097 |
| 1098 buildTests('testCompletion_import_dart', ''' | 1098 buildTests('testCompletion_import_dart', ''' |
| 1099 import 'dart:math | 1099 import 'dart:math |
| 1100 import 'dart:_chrome | 1100 import 'dart:_chrome |
| 1101 import 'dart:_collection.dev | 1101 import 'dart:_collection.dev |
| 1102 import 'dart:!1''', <String>[ | 1102 import 'dart:!1''', <String>[ |
| 1103 "1+dart:core", | 1103 "1+dart:core", |
| 1104 "1+dart:math", | 1104 "1+dart:math", |
| 1105 "1-dart:_chrome", | 1105 "1-dart:_chrome", |
| 1106 "1-dart:_collection.dev" | 1106 "1-dart:_collection.dev" |
| 1107 ], failingTests: '1'); | 1107 ], failingTests: '1'); |
| 1108 | 1108 |
| 1109 buildTests('testCompletion_import_hasStringLiteral_noSemicolon', ''' | 1109 buildTests('testCompletion_import_hasStringLiteral_noSemicolon', ''' |
| 1110 import '!1' | 1110 import '!1' |
| 1111 | 1111 |
| 1112 class A {}''', <String>["1+dart:!", "1+package:!"], failingTests: '1'); | 1112 class A {}''', <String>["1+dart:!", "1+package:!"]); |
| 1113 | 1113 |
| 1114 buildTests('testCompletion_import_noSpace', ''' | 1114 buildTests('testCompletion_import_noSpace', ''' |
| 1115 import!1''', <String>["1+ 'dart:!';", "1+ 'package:!';"], failingTests: '1'); | 1115 import!1''', <String>["1+ 'dart:!';", "1+ 'package:!';"], failingTests: '1'); |
| 1116 | 1116 |
| 1117 buildTests('testCompletion_import_noStringLiteral', ''' | 1117 buildTests('testCompletion_import_noStringLiteral', ''' |
| 1118 import !1;''', <String>["1+'dart:!'", "1+'package:!'"], failingTests: '1'); | 1118 import !1;''', <String>["1+'dart:!'", "1+'package:!'"], failingTests: '1'); |
| 1119 | 1119 |
| 1120 buildTests('testCompletion_import_noStringLiteral_noSemicolon', ''' | 1120 buildTests('testCompletion_import_noStringLiteral_noSemicolon', ''' |
| 1121 import !1 | 1121 import !1 |
| 1122 | 1122 |
| (...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2286 } else { | 2286 } else { |
| 2287 ++expectedPassCount; | 2287 ++expectedPassCount; |
| 2288 tester(testName, () { | 2288 tester(testName, () { |
| 2289 CompletionTestCase test = new CompletionTestCase(); | 2289 CompletionTestCase test = new CompletionTestCase(); |
| 2290 return test.runTest(spec, extraFiles); | 2290 return test.runTest(spec, extraFiles); |
| 2291 }); | 2291 }); |
| 2292 } | 2292 } |
| 2293 } | 2293 } |
| 2294 } | 2294 } |
| 2295 } | 2295 } |
| OLD | NEW |