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 of literals. | 5 // Tests of literals. |
6 | 6 |
7 library literals_tests; | 7 library literals_tests; |
8 | 8 |
9 import 'js_backend_cps_ir.dart'; | 9 import 'js_backend_cps_ir.dart'; |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 """, | 22 """, |
23 r""" | 23 r""" |
24 function() { | 24 function() { |
25 P.print([]); | 25 P.print([]); |
26 P.print([1]); | 26 P.print([1]); |
27 P.print([1, 2]); | 27 P.print([1, 2]); |
28 P.print([1, [1, 2]]); | 28 P.print([1, [1, 2]]); |
29 P.print(P.LinkedHashMap_LinkedHashMap$_empty()); | 29 P.print(P.LinkedHashMap_LinkedHashMap$_empty()); |
30 P.print(P.LinkedHashMap_LinkedHashMap$_literal([1, 2])); | 30 P.print(P.LinkedHashMap_LinkedHashMap$_literal([1, 2])); |
31 P.print(P.LinkedHashMap_LinkedHashMap$_literal([[1, 2], [3, 4]])); | 31 P.print(P.LinkedHashMap_LinkedHashMap$_literal([[1, 2], [3, 4]])); |
32 return null; | |
33 }"""), | 32 }"""), |
34 ]; | 33 ]; |
35 | 34 |
36 void main() { | 35 void main() { |
37 runTests(tests); | 36 runTests(tests); |
38 } | 37 } |
OLD | NEW |