| 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 // Tests for basic functionality. | 5 // Tests for basic functionality. |
| 6 | 6 |
| 7 library basic_tests; | 7 library basic_tests; |
| 8 | 8 |
| 9 import 'js_backend_cps_ir_test.dart'; | 9 import 'js_backend_cps_ir_test.dart'; |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 """, | 67 """, |
| 68 """function() { | 68 """function() { |
| 69 return V.foo(); | 69 return V.foo(); |
| 70 }"""), | 70 }"""), |
| 71 const TestEntry("main() {}"), | 71 const TestEntry("main() {}"), |
| 72 const TestEntry("main() { return 42; }"), | 72 const TestEntry("main() { return 42; }"), |
| 73 const TestEntry("main() { return; }", """ | 73 const TestEntry("main() { return; }", """ |
| 74 function() { | 74 function() { |
| 75 return null; | 75 return null; |
| 76 }"""), | 76 }"""), |
| 77 const TestEntry(""" |
| 78 main() { |
| 79 print(new Set()); |
| 80 print(new Set.from([1, 2, 3])); |
| 81 }""", r""" |
| 82 function() { |
| 83 P.print(P.Set_Set()); |
| 84 P.print(P.Set_Set$from([1, 2, 3])); |
| 85 return null; |
| 86 }"""), |
| 77 ]; | 87 ]; |
| OLD | NEW |