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

Side by Side Diff: tests/compiler/dart2js/value_range_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 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import 'compiler_helper.dart'; 6 import 'compiler_helper.dart';
7 7
8 const int REMOVED = 0; 8 const int REMOVED = 0;
9 const int ABOVE_ZERO = 1; 9 const int ABOVE_ZERO = 1;
10 const int BELOW_LENGTH = 2; 10 const int BELOW_LENGTH = 2;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 abstract class Map {} 218 abstract class Map {}
219 class Closure {} 219 class Closure {}
220 class Null {} 220 class Null {}
221 class Dynamic_ {} 221 class Dynamic_ {}
222 bool identical(Object a, Object b) {}'''; 222 bool identical(Object a, Object b) {}''';
223 223
224 const String INTERCEPTORSLIB_WITH_MEMBERS = r''' 224 const String INTERCEPTORSLIB_WITH_MEMBERS = r'''
225 abstract class JSIndexable { 225 abstract class JSIndexable {
226 get length; 226 get length;
227 } 227 }
228 abstract class JSMutableIndexable extends JSIndexable {}
228 class JSArray implements JSIndexable { 229 class JSArray implements JSIndexable {
229 var length; 230 var length;
230 var removeLast; 231 var removeLast;
231 operator[] (_) {} 232 operator[] (_) {}
232 } 233 }
233 class JSMutableArray extends JSArray {} 234 class JSMutableArray extends JSArray implements JSMutableIndexable {}
234 class JSFixedArray extends JSMutableArray {} 235 class JSFixedArray extends JSMutableArray {}
235 class JSExtendableArray extends JSMutableArray {} 236 class JSExtendableArray extends JSMutableArray {}
236 class JSString implements JSIndexable { 237 class JSString implements JSIndexable {
237 var length; 238 var length;
238 } 239 }
239 class JSNumber { 240 class JSNumber {
240 operator +(other) {} 241 operator +(other) {}
241 operator -(other) {} 242 operator -(other) {}
242 operator ~/(other) {} 243 operator ~/(other) {}
243 operator /(other) {} 244 operator /(other) {}
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 break; 306 break;
306 } 307 }
307 } 308 }
308 309
309 310
310 main() { 311 main() {
311 for (int i = 0; i < TESTS.length; i += 2) { 312 for (int i = 0; i < TESTS.length; i += 2) {
312 expect(TESTS[i], TESTS[i + 1]); 313 expect(TESTS[i], TESTS[i + 1]);
313 } 314 }
314 } 315 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698