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

Side by Side Diff: tests/utils/dummy_compiler_test.dart

Issue 13940015: Allow using native JS []= on typed data lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // Smoke test of the dart2js compiler API. 5 // Smoke test of the dart2js compiler API.
6 library dummy_compiler; 6 library dummy_compiler;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:uri'; 9 import 'dart:uri';
10 10
(...skipping 28 matching lines...) Expand all
39 setRuntimeTypeInfo(o, i) {} 39 setRuntimeTypeInfo(o, i) {}
40 eqNull(a) {} 40 eqNull(a) {}
41 eqNullB(a) {}"""; 41 eqNullB(a) {}""";
42 } else if (uri.path.endsWith('_patch.dart')) { 42 } else if (uri.path.endsWith('_patch.dart')) {
43 source = ''; 43 source = '';
44 } else if (uri.path.endsWith('interceptors.dart')) { 44 } else if (uri.path.endsWith('interceptors.dart')) {
45 source = """class ObjectInterceptor {} 45 source = """class ObjectInterceptor {}
46 class JSIndexable { 46 class JSIndexable {
47 get length; 47 get length;
48 } 48 }
49 class JSMutableIndexable {}
49 class JSArray { 50 class JSArray {
50 var removeLast; 51 var removeLast;
51 var add; 52 var add;
52 } 53 }
53 class JSFixedArray {} 54 class JSFixedArray {}
54 class JSExtendableArray {} 55 class JSExtendableArray {}
55 class JSString { 56 class JSString {
56 var split; 57 var split;
57 var concat; 58 var concat;
58 var toString; 59 var toString;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 new Uri.fromComponents(scheme: 'package', path: '/'), 97 new Uri.fromComponents(scheme: 'package', path: '/'),
97 provider, handler); 98 provider, handler);
98 result.then((String code) { 99 result.then((String code) {
99 if (code == null) { 100 if (code == null) {
100 throw 'Compilation failed'; 101 throw 'Compilation failed';
101 } 102 }
102 }, onError: (e) { 103 }, onError: (e) {
103 throw 'Compilation failed'; 104 throw 'Compilation failed';
104 }); 105 });
105 } 106 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698