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

Side by Side Diff: tests/utils/recursive_import_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, 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 | 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 // Test of "recursive" imports using the dart2js compiler API. 5 // Test of "recursive" imports using the dart2js compiler API.
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import 'dart:async'; 8 import 'dart:async';
9 import '../../sdk/lib/_internal/compiler/compiler.dart'; 9 import '../../sdk/lib/_internal/compiler/compiler.dart';
10 import 'dart:uri'; 10 import 'dart:uri';
(...skipping 21 matching lines...) Expand all
32 eqNull(a) {} 32 eqNull(a) {}
33 eqNullB(a) {} 33 eqNullB(a) {}
34 class JSInvocationMirror {} // Should be in helper. 34 class JSInvocationMirror {} // Should be in helper.
35 """; 35 """;
36 36
37 const INTERCEPTORS_LIB = """ 37 const INTERCEPTORS_LIB = """
38 library interceptors; 38 library interceptors;
39 class JSIndexable { 39 class JSIndexable {
40 get length; 40 get length;
41 } 41 }
42 class JSMutableIndexable {}
42 class JSArray { 43 class JSArray {
43 removeLast() => null; 44 removeLast() => null;
44 add(x) { } 45 add(x) { }
45 } 46 }
46 class JSString { 47 class JSString {
47 split(x) => null; 48 split(x) => null;
48 concat(x) => null; 49 concat(x) => null;
49 toString() => null; 50 toString() => null;
50 } 51 }
51 """; 52 """;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 Expect.isNull(code); 113 Expect.isNull(code);
113 Expect.isTrue(10 < count); 114 Expect.isTrue(10 < count);
114 // Two warnings for each time RECURSIVE_MAIN is read, except the 115 // Two warnings for each time RECURSIVE_MAIN is read, except the
115 // first time. 116 // first time.
116 Expect.equals(2 * (count - 1), warningCount); 117 Expect.equals(2 * (count - 1), warningCount);
117 Expect.equals(1, errorCount); 118 Expect.equals(1, errorCount);
118 }, onError: (e) { 119 }, onError: (e) {
119 throw 'Compilation failed'; 120 throw 'Compilation failed';
120 }); 121 });
121 } 122 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698