| 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 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1401 }''', <String>["1-FIELD", "1+fieldA", "2+fieldC", "2+fieldA"]); | 1401 }''', <String>["1-FIELD", "1+fieldA", "2+fieldC", "2+fieldA"]); |
| 1402 | 1402 |
| 1403 buildTests('testCompletion_return_withIdentifierPrefix', ''' | 1403 buildTests('testCompletion_return_withIdentifierPrefix', ''' |
| 1404 f() { var vvv = 42; return v!1 }''', <String>["1+vvv"]); | 1404 f() { var vvv = 42; return v!1 }''', <String>["1+vvv"]); |
| 1405 | 1405 |
| 1406 buildTests('testCompletion_return_withoutExpression', ''' | 1406 buildTests('testCompletion_return_withoutExpression', ''' |
| 1407 f() { var vvv = 42; return !1 }''', <String>["1+vvv"]); | 1407 f() { var vvv = 42; return !1 }''', <String>["1+vvv"]); |
| 1408 | 1408 |
| 1409 buildTests('testCompletion_staticField1', ''' | 1409 buildTests('testCompletion_staticField1', ''' |
| 1410 class num{}class Sunflower {static final n!2um MAX_D = 300;nu!3m xc, yc;Sun!4flo
wer() {x!Xc = y!Yc = MA!1 }}''', | 1410 class num{}class Sunflower {static final n!2um MAX_D = 300;nu!3m xc, yc;Sun!4flo
wer() {x!Xc = y!Yc = MA!1 }}''', |
| 1411 <String>["1+MAX_D", "X+xc", "Y+yc", "2+num", "3+num", "4+Sunflower"], | 1411 <String>["1+MAX_D", "X+xc", "Y+yc", "2+num", "3+num", "4+Sunflower"]); |
| 1412 failingTests: '2'); | |
| 1413 | 1412 |
| 1414 buildTests('testCompletion_super_superType', ''' | 1413 buildTests('testCompletion_super_superType', ''' |
| 1415 class A { | 1414 class A { |
| 1416 var fa; | 1415 var fa; |
| 1417 ma() {} | 1416 ma() {} |
| 1418 } | 1417 } |
| 1419 class B extends A { | 1418 class B extends A { |
| 1420 var fb; | 1419 var fb; |
| 1421 mb() {} | 1420 mb() {} |
| 1422 main() { | 1421 main() { |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2287 } else { | 2286 } else { |
| 2288 ++expectedPassCount; | 2287 ++expectedPassCount; |
| 2289 tester(testName, () { | 2288 tester(testName, () { |
| 2290 CompletionTestCase test = new CompletionTestCase(); | 2289 CompletionTestCase test = new CompletionTestCase(); |
| 2291 return test.runTest(spec, extraFiles); | 2290 return test.runTest(spec, extraFiles); |
| 2292 }); | 2291 }); |
| 2293 } | 2292 } |
| 2294 } | 2293 } |
| 2295 } | 2294 } |
| 2296 } | 2295 } |
| OLD | NEW |