| 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 // VMOptions=-DUSE_CPS_IR=true | 4 // VMOptions=-DUSE_CPS_IR=true |
| 5 | 5 |
| 6 // Tests for basic functionality. | 6 // Tests for basic functionality. |
| 7 | 7 |
| 8 library basic_tests; | 8 library basic_tests; |
| 9 | 9 |
| 10 import 'js_backend_cps_ir.dart'; | 10 import 'js_backend_cps_ir.dart'; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 function() { | 104 function() { |
| 105 return null; | 105 return null; |
| 106 }"""), | 106 }"""), |
| 107 // Constructor invocation | 107 // Constructor invocation |
| 108 const TestEntry(""" | 108 const TestEntry(""" |
| 109 main() { | 109 main() { |
| 110 print(new Set()); | 110 print(new Set()); |
| 111 print(new Set.from([1, 2, 3])); | 111 print(new Set.from([1, 2, 3])); |
| 112 }""", r""" | 112 }""", r""" |
| 113 function() { | 113 function() { |
| 114 P.print(P.Set_Set()); | 114 P.print(P.Set_Set(null)); |
| 115 P.print(P.Set_Set$from([1, 2, 3])); | 115 P.print(P.Set_Set$from([1, 2, 3], null)); |
| 116 return null; | 116 return null; |
| 117 }"""), | 117 }"""), |
| 118 // Call synthetic constructor. | 118 // Call synthetic constructor. |
| 119 const TestEntry(""" | 119 const TestEntry(""" |
| 120 class C {} | 120 class C {} |
| 121 main() { | 121 main() { |
| 122 print(new C()); | 122 print(new C()); |
| 123 }"""), | 123 }"""), |
| 124 // Method invocation | 124 // Method invocation |
| 125 const TestEntry(""" | 125 const TestEntry(""" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 function() { | 175 function() { |
| 176 V.foo(42); | 176 V.foo(42); |
| 177 return null; | 177 return null; |
| 178 }""") | 178 }""") |
| 179 ]; | 179 ]; |
| 180 | 180 |
| 181 | 181 |
| 182 void main() { | 182 void main() { |
| 183 runTests(tests); | 183 runTests(tests); |
| 184 } | 184 } |
| OLD | NEW |