| 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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 class Foo {this.!1}''', <String>["1-Object"], failingTests: '1'); | 637 class Foo {this.!1}''', <String>["1-Object"], failingTests: '1'); |
| 638 | 638 |
| 639 buildTests('testCommentSnippets082', ''' | 639 buildTests('testCommentSnippets082', ''' |
| 640 class HttpRequest {} | 640 class HttpRequest {} |
| 641 class HttpResponse {} | 641 class HttpResponse {} |
| 642 main() { | 642 main() { |
| 643 var v = (HttpRequest req, HttpResp!1) | 643 var v = (HttpRequest req, HttpResp!1) |
| 644 }''', <String>["1+HttpResponse"]); | 644 }''', <String>["1+HttpResponse"]); |
| 645 | 645 |
| 646 buildTests('testCommentSnippets083', ''' | 646 buildTests('testCommentSnippets083', ''' |
| 647 main() {(.!1)}''', <String>["1-toString"], failingTests: '1'); | 647 main() {(.!1)}''', <String>["1-toString"]); |
| 648 | 648 |
| 649 buildTests('testCommentSnippets083a', ''' | 649 buildTests('testCommentSnippets083a', ''' |
| 650 main() { .!1 }''', <String>["1-toString"], failingTests: '1'); | 650 main() { .!1 }''', <String>["1-toString"]); |
| 651 | 651 |
| 652 buildTests('testCommentSnippets083b', ''' | 652 buildTests('testCommentSnippets083b', ''' |
| 653 main() { null.!1 }''', <String>["1+toString"], failingTests: '1'); | 653 main() { null.!1 }''', <String>["1+toString"], failingTests: '1'); |
| 654 | 654 |
| 655 buildTests('testCommentSnippets084', ''' | 655 buildTests('testCommentSnippets084', ''' |
| 656 class List{}class Map{}typedef X = !1Lis!2t with !3Ma!4p;''', <String>[ | 656 class List{}class Map{}typedef X = !1Lis!2t with !3Ma!4p;''', <String>[ |
| 657 "1+Map", | 657 "1+Map", |
| 658 "2+List", | 658 "2+List", |
| 659 "2-Map", | 659 "2-Map", |
| 660 "3+List", | 660 "3+List", |
| (...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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'); |
| 2013 | 2013 |
| 2014 buildTests('test021', '''var x = .!1''', <String>["1-toString"], | 2014 buildTests('test021', '''var x = .!1''', <String>["1-toString"]); |
| 2015 failingTests: '1'); | |
| 2016 | 2015 |
| 2017 buildTests('test022', '''var x = .!1;''', <String>["1-toString"], | 2016 buildTests('test022', '''var x = .!1;''', <String>["1-toString"]); |
| 2018 failingTests: '1'); | |
| 2019 | 2017 |
| 2020 buildTests('test023', ''' | 2018 buildTests('test023', ''' |
| 2021 class Map{getKeys(){}} | 2019 class Map{getKeys(){}} |
| 2022 class X { | 2020 class X { |
| 2023 static x1(Map m) { | 2021 static x1(Map m) { |
| 2024 m.!1getKeys; | 2022 m.!1getKeys; |
| 2025 } | 2023 } |
| 2026 x2(Map m) { | 2024 x2(Map m) { |
| 2027 m.!2getKeys; | 2025 m.!2getKeys; |
| 2028 } | 2026 } |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2289 } else { | 2287 } else { |
| 2290 ++expectedPassCount; | 2288 ++expectedPassCount; |
| 2291 tester(testName, () { | 2289 tester(testName, () { |
| 2292 CompletionTestCase test = new CompletionTestCase(); | 2290 CompletionTestCase test = new CompletionTestCase(); |
| 2293 return test.runTest(spec, extraFiles); | 2291 return test.runTest(spec, extraFiles); |
| 2294 }); | 2292 }); |
| 2295 } | 2293 } |
| 2296 } | 2294 } |
| 2297 } | 2295 } |
| 2298 } | 2296 } |
| OLD | NEW |