| 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 /// Test data for the end2end test. | 5 /// Test data for the end2end test. |
| 6 library test.end2end.data; | 6 library test.end2end.data; |
| 7 | 7 |
| 8 import 'test_helper.dart' show Group; | 8 import 'test_helper.dart' show Group; |
| 9 import 'test_helper.dart' as base show TestSpec; | 9 import 'test_helper.dart' as base show TestSpec; |
| 10 | 10 |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 } | 638 } |
| 639 }''', ''' | 639 }''', ''' |
| 640 main() { | 640 main() { |
| 641 var i = 0; | 641 var i = 0; |
| 642 while (i < 10) { | 642 while (i < 10) { |
| 643 print(i); | 643 print(i); |
| 644 ++i; | 644 ++i; |
| 645 } | 645 } |
| 646 }'''), | 646 }'''), |
| 647 ]), | 647 ]), |
| 648 |
| 649 const Group('Type operators', const <TestSpec>[ |
| 650 const TestSpec(''' |
| 651 main(a) { |
| 652 return a is String; |
| 653 } |
| 654 '''), |
| 655 |
| 656 const TestSpec(''' |
| 657 main(a) { |
| 658 return a is List<String>; |
| 659 } |
| 660 '''), |
| 661 |
| 662 const TestSpec(''' |
| 663 main(a) { |
| 664 return a is Comparator<String>; |
| 665 } |
| 666 '''), |
| 667 |
| 668 const TestSpec(''' |
| 669 main(a) { |
| 670 return a is! String; |
| 671 } |
| 672 ''', ''' |
| 673 main(a) { |
| 674 return !(a is String); |
| 675 } |
| 676 '''), |
| 677 |
| 678 const TestSpec(''' |
| 679 main(a) { |
| 680 return a as String; |
| 681 } |
| 682 '''), |
| 683 ]), |
| 648 ]; | 684 ]; |
| OLD | NEW |