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

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

Issue 1413683006: Move runtime js files down to lib/runtime/dart (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 1 month 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/src/options.dart ('k') | test/codegen/expect/8invalid-chars.in+file_name.js » ('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 core = dart_library.import('dart/core'); 6 var core = dart_library.import('dart/core');
7 var collection = dart_library.import('dart/collection'); 7 var collection = dart_library.import('dart/collection');
8 var dart = dart_library.import('dart_runtime/dart'); 8 var dart = dart_library.import('dart/_runtime');
9 var dartx = dart.dartx; 9 var dartx = dart.dartx;
10 10
11 // TODO(leafp): These are here to test some things not 11 // TODO(leafp): These are here to test some things not
12 // currently exposed through the main dart entry point. 12 // currently exposed through the main dart entry point.
13 // If we decide to expose them, this can go away. 13 // If we decide to expose them, this can go away.
14 var classes = dart_library.import('dart_runtime/_classes'); 14 var classes = dart_library.import('dart/_classes');
15 var types = dart_library.import('dart_runtime/_types'); 15 var types = dart_library.import('dart/_types');
16 16
17 suite('generic', () => { 17 suite('generic', () => {
18 "use strict"; 18 "use strict";
19 19
20 let generic = dart.generic; 20 let generic = dart.generic;
21 21
22 test('zero arguments is not allowed', () => { 22 test('zero arguments is not allowed', () => {
23 assert.throws(() => { generic(function(){}); }); 23 assert.throws(() => { generic(function(){}); });
24 }); 24 });
25 25
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 776
777 suite('primitives', function() { 777 suite('primitives', function() {
778 'use strict'; 778 'use strict';
779 779
780 test('fixed length list', () => { 780 test('fixed length list', () => {
781 let list = new core.List(10); 781 let list = new core.List(10);
782 list[0] = 42; 782 list[0] = 42;
783 assert.throws(() => list.add(42)); 783 assert.throws(() => list.add(42));
784 }); 784 });
785 }); 785 });
OLDNEW
« no previous file with comments | « lib/src/options.dart ('k') | test/codegen/expect/8invalid-chars.in+file_name.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698