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

Side by Side Diff: tests/lib/convert/base64_test.dart

Issue 2763823002: Move spaces from before comments to within comments (Closed)
Patch Set: Fix comments Created 3 years, 9 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
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 'dart:convert'; 5 import 'dart:convert';
6 import "dart:typed_data"; 6 import "dart:typed_data";
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 8
9 main() { 9 main() {
10 for (var list in [[], 10 for (var list in [[],
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 badChunkEncode([0, invalid]); 259 badChunkEncode([0, invalid]);
260 badChunkEncode([0, 0, invalid]); 260 badChunkEncode([0, 0, invalid]);
261 badChunkEncode([0, invalid, 0]); 261 badChunkEncode([0, invalid, 0]);
262 badChunkEncode([invalid, 0, 0]); 262 badChunkEncode([invalid, 0, 0]);
263 } 263 }
264 264
265 badEncode(-1); 265 badEncode(-1);
266 badEncode(0x100); 266 badEncode(0x100);
267 badEncode(0x1000); 267 badEncode(0x1000);
268 badEncode(0x10000); 268 badEncode(0x10000);
269 badEncode(0x100000000); /// 01: ok 269 badEncode(0x100000000); // /// 01: ok
270 badEncode(0x10000000000000000); /// 01: continued 270 badEncode(0x10000000000000000); // /// 01: continued
271 } 271 }
272 272
273 void testIssue25577() { 273 void testIssue25577() {
274 // Regression test for http://dartbug.com/25577 274 // Regression test for http://dartbug.com/25577
275 // Should not fail in checked mode. 275 // Should not fail in checked mode.
276 StringConversionSink decodeSink = 276 StringConversionSink decodeSink =
277 BASE64.decoder.startChunkedConversion(new TestSink<List<int>>()); 277 BASE64.decoder.startChunkedConversion(new TestSink<List<int>>());
278 ByteConversionSink encodeSink = 278 ByteConversionSink encodeSink =
279 BASE64.encoder.startChunkedConversion(new TestSink<String>()); 279 BASE64.encoder.startChunkedConversion(new TestSink<String>());
280 } 280 }
281 281
282 // Implementation of Sink<T> to test type constraints. 282 // Implementation of Sink<T> to test type constraints.
283 class TestSink<T> implements Sink<T> { 283 class TestSink<T> implements Sink<T> {
284 void add(T value) {} 284 void add(T value) {}
285 void close() {} 285 void close() {}
286 } 286 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698