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

Side by Side Diff: tests/compiler/dart2js/scanner_test.dart

Issue 14022007: Move Iterable implementation to collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Merge to head. 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
« no previous file with comments | « sdk/lib/utf/utf8.dart ('k') | tests/compiler/dart2js_extra/for_in_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) 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 'dart:collection';
6 import 'dart:utf'; 7 import 'dart:utf';
7 import '../../../sdk/lib/_internal/compiler/implementation/scanner/scannerlib.da rt'; 8 import '../../../sdk/lib/_internal/compiler/implementation/scanner/scannerlib.da rt';
8 import '../../../sdk/lib/_internal/compiler/implementation/scanner/scanner_imple mentation.dart'; 9 import '../../../sdk/lib/_internal/compiler/implementation/scanner/scanner_imple mentation.dart';
9 import '../../../sdk/lib/_internal/compiler/implementation/util/characters.dart' ; 10 import '../../../sdk/lib/_internal/compiler/implementation/util/characters.dart' ;
10 part '../../../sdk/lib/_internal/compiler/implementation/scanner/byte_strings.da rt'; 11 part '../../../sdk/lib/_internal/compiler/implementation/scanner/byte_strings.da rt';
11 part '../../../sdk/lib/_internal/compiler/implementation/scanner/byte_array_scan ner.dart'; 12 part '../../../sdk/lib/_internal/compiler/implementation/scanner/byte_array_scan ner.dart';
12 13
13 Token scan(List<int> bytes) => new ByteArrayScanner(bytes).tokenize(); 14 Token scan(List<int> bytes) => new ByteArrayScanner(bytes).tokenize();
14 15
15 bool isRunningOnJavaScript() => identical(1, 1.0); 16 bool isRunningOnJavaScript() => identical(1, 1.0);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // "#!" 58 // "#!"
58 token = scan([0x23, 0x21, $EOF]); 59 token = scan([0x23, 0x21, $EOF]);
59 Expect.equals(token.info, EOF_INFO); // Treated as a comment. 60 Expect.equals(token.info, EOF_INFO); // Treated as a comment.
60 61
61 // Regression test for issue 1761. 62 // Regression test for issue 1761.
62 // "#! Hello, World!" 63 // "#! Hello, World!"
63 token = scan([0x23, 0x21, 0x20, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x2c, 0x20, 64 token = scan([0x23, 0x21, 0x20, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x2c, 0x20,
64 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x21, $EOF]); 65 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x21, $EOF]);
65 Expect.equals(token.info, EOF_INFO); // Treated as a comment. 66 Expect.equals(token.info, EOF_INFO); // Treated as a comment.
66 } 67 }
OLDNEW
« no previous file with comments | « sdk/lib/utf/utf8.dart ('k') | tests/compiler/dart2js_extra/for_in_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698