| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 import 'native_testing.dart'; | 5 import 'dart:_foreign_helper' show JS; |
| 6 import "package:expect/expect.dart"; |
| 6 | 7 |
| 7 // Negative constant numbers must be generated as negation, not just a literal | 8 // Negative constant numbers must be generated as negation, not just a literal |
| 8 // with a sign, i.e. | 9 // with a sign, i.e. |
| 9 // | 10 // |
| 10 // (-5).toString() | 11 // (-5).toString() |
| 11 // | 12 // |
| 12 // not | 13 // not |
| 13 // | 14 // |
| 14 // -5 .toString() | 15 // -5 .toString() |
| 15 // | 16 // |
| (...skipping 17 matching lines...) Expand all Loading... |
| 33 | 34 |
| 34 test3() { | 35 test3() { |
| 35 checkString(JS('', '#.toString()', -0.0)); | 36 checkString(JS('', '#.toString()', -0.0)); |
| 36 } | 37 } |
| 37 | 38 |
| 38 main() { | 39 main() { |
| 39 test1(); | 40 test1(); |
| 40 test2(); | 41 test2(); |
| 41 test3(); | 42 test3(); |
| 42 } | 43 } |
| OLD | NEW |