| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 const TestEntry(""" | 78 const TestEntry(""" |
| 79 main() { | 79 main() { |
| 80 print(new Set()); | 80 print(new Set()); |
| 81 print(new Set.from([1, 2, 3])); | 81 print(new Set.from([1, 2, 3])); |
| 82 }""", r""" | 82 }""", r""" |
| 83 function() { | 83 function() { |
| 84 P.print(P.Set_Set()); | 84 P.print(P.Set_Set()); |
| 85 P.print(P.Set_Set$from([1, 2, 3])); | 85 P.print(P.Set_Set$from([1, 2, 3])); |
| 86 return null; | 86 return null; |
| 87 }"""), | 87 }"""), |
| 88 // Call synthetic constructor. |
| 89 const TestEntry(""" |
| 90 class C {} |
| 91 main() { |
| 92 print(new C()); |
| 93 }"""), |
| 88 // Method invocation | 94 // Method invocation |
| 89 const TestEntry(""" | 95 const TestEntry(""" |
| 90 main() { | 96 main() { |
| 91 print(new DateTime.now().isBefore(new DateTime.now())); | 97 print(new DateTime.now().isBefore(new DateTime.now())); |
| 92 }""", r""" | 98 }""", r""" |
| 93 function() { | 99 function() { |
| 94 P.print(P.DateTime$now().isBefore$1(P.DateTime$now())); | 100 P.print(P.DateTime$now().isBefore$1(P.DateTime$now())); |
| 95 return null; | 101 return null; |
| 96 }"""), | 102 }"""), |
| 97 ]; | 103 ]; |
| OLD | NEW |