| 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'; | 8 import 'test_helper.dart'; |
| 9 | 9 |
| 10 class TestSpec extends TestSpecBase { | 10 class TestSpec extends TestSpecBase { |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 const TestSpec(''' | 278 const TestSpec(''' |
| 279 main(a) { | 279 main(a) { |
| 280 if (a) { | 280 if (a) { |
| 281 a = ""; | 281 a = ""; |
| 282 } | 282 } |
| 283 print(a); | 283 print(a); |
| 284 return a; | 284 return a; |
| 285 } | 285 } |
| 286 ''', ''' | 286 ''', ''' |
| 287 main(a) { | 287 main(a) { |
| 288 a = a ? "" : a; | 288 print(a = a ? "" : a); |
| 289 print(a); | |
| 290 return a; | 289 return a; |
| 291 } | 290 } |
| 292 '''), | 291 '''), |
| 293 ]), | 292 ]), |
| 294 | 293 |
| 295 const Group('Dynamic access', const <TestSpec>[ | 294 const Group('Dynamic access', const <TestSpec>[ |
| 296 const TestSpec(''' | 295 const TestSpec(''' |
| 297 main(a) { | 296 main(a) { |
| 298 return a.foo; | 297 return a.foo; |
| 299 } | 298 } |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 main() { | 905 main() { |
| 907 try { | 906 try { |
| 908 return null; | 907 return null; |
| 909 } catch (e, v0) { | 908 } catch (e, v0) { |
| 910 return null; | 909 return null; |
| 911 } | 910 } |
| 912 } | 911 } |
| 913 '''), | 912 '''), |
| 914 ]), | 913 ]), |
| 915 ]; | 914 ]; |
| OLD | NEW |