Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: test/browser/runtime_tests.js

Issue 1993293002: fix #577 - correctly toString ES Symbols (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | tool/input_sdk/private/ddc_runtime/operations.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 });
OLDNEW
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | tool/input_sdk/private/ddc_runtime/operations.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698