| 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 var assert = chai.assert; | 5 var assert = chai.assert; |
| 6 var dart_sdk = dart_library.import('dart_sdk'); | 6 var dart_sdk = dart_library.import('dart_sdk'); |
| 7 var core = dart_sdk.core; | 7 var core = dart_sdk.core; |
| 8 var collection = dart_sdk.collection; | 8 var collection = dart_sdk.collection; |
| 9 var dart = dart_sdk.dart; | 9 var dart = dart_sdk.dart; |
| 10 var dartx = dart.dartx; | 10 var dartx = dart.dartx; |
| (...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 }); | 1156 }); |
| 1157 | 1157 |
| 1158 suite('primitives', function() { | 1158 suite('primitives', function() { |
| 1159 'use strict'; | 1159 'use strict'; |
| 1160 | 1160 |
| 1161 test('fixed length list', () => { | 1161 test('fixed length list', () => { |
| 1162 let list = new core.List(10); | 1162 let list = new core.List(10); |
| 1163 list[0] = 42; | 1163 list[0] = 42; |
| 1164 assert.throws(() => list.add(42)); | 1164 assert.throws(() => list.add(42)); |
| 1165 }); | 1165 }); |
| 1166 |
| 1167 test('toString on ES Symbol', () => { |
| 1168 let sym = Symbol('_foobar'); |
| 1169 assert.equal(dart.toString(sym), 'Symbol(_foobar)'); |
| 1170 }); |
| 1166 }); | 1171 }); |
| OLD | NEW |