Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // Tests of literals. | |
| 6 | |
| 7 library literals_tests; | |
| 8 | |
| 9 import 'js_backend_cps_ir_test.dart'; | |
| 10 | |
| 11 const List<TestEntry> tests = const [ | |
| 12 const TestEntry(""" | |
| 13 main() { | |
| 14 print([]); | |
| 15 print([1]); | |
| 16 print([1, 2]); | |
| 17 print([1, [1, 2]]); | |
| 18 } | |
| 19 """, | |
| 20 """ | |
| 21 function() { | |
| 22 P.print([]); | |
| 23 P.print([1]); | |
| 24 P.print([1, 2]); | |
| 25 P.print([1, [1, 2]]); | |
| 26 return null; | |
| 27 }"""), | |
| 28 ]; | |
| OLD | NEW |