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

Side by Side Diff: tests/corelib_2/collection_removes_test.dart

Issue 2977403002: Migrate test block 3 to Dart 2.0. (Closed)
Patch Set: Addressed Bob's nits Created 3 years, 5 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 | « tests/corelib_2/collection_length_test.dart ('k') | tests/corelib_2/collection_test.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 'dart:collection'; 5 import 'dart:collection';
6 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
7 7
8 testRemove(base) { 8 testRemove(base) {
9 int length = base.length; 9 int length = base.length;
10 for (int i = 0; i < length; i++) { 10 for (int i = 0; i < length; i++) {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 int get length => _source.length; 121 int get length => _source.length;
122 void set length(int length) { 122 void set length(int length) {
123 _source.length = length; 123 _source.length = length;
124 } 124 }
125 125
126 E operator [](int index) => _source[index]; 126 E operator [](int index) => _source[index];
127 void operator []=(int index, E value) { 127 void operator []=(int index, E value) {
128 _source[index] = value; 128 _source[index] = value;
129 } 129 }
130 } 130 }
OLDNEW
« no previous file with comments | « tests/corelib_2/collection_length_test.dart ('k') | tests/corelib_2/collection_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698