| Index: tests/compiler/dart2js_native/foreign_test.dart
|
| ===================================================================
|
| --- tests/compiler/dart2js_native/foreign_test.dart (revision 17705)
|
| +++ tests/compiler/dart2js_native/foreign_test.dart (working copy)
|
| @@ -30,4 +30,10 @@
|
| Expect.equals(998, foreign2());
|
| Expect.equals('1234567891011',
|
| foreign11('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11'));
|
| + // Ensure there will be isNaN and NaN variable names.
|
| + var isNaN = called ? 42 : 44;
|
| + var NaN = called ? 52 : 54;
|
| + Expect.isFalse(JS('bool', 'isNaN(#)', isNaN));
|
| + Expect.isFalse(JS('bool', 'isNaN(#)', NaN));
|
| + Expect.isTrue(JS('bool', 'isNaN(#)', double.NAN));
|
| }
|
|
|