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

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

Issue 13797002: Change MirrorSystem.libraries to Map<Uri, String> (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 'memory_source_file_helper.dart'; 6 import 'memory_source_file_helper.dart';
7 7
8 import '../../../sdk/lib/_internal/compiler/compiler.dart' 8 import '../../../sdk/lib/_internal/compiler/compiler.dart'
9 show Diagnostic; 9 show Diagnostic;
10 10
11 main() { 11 main() {
12 Uri cwd = getCurrentDirectory(); 12 Uri script = currentDirectory.resolve(nativeToUriPath(new Options().script));
13 Uri script = cwd.resolve(nativeToUriPath(new Options().script));
14 Uri libraryRoot = script.resolve('../../../sdk/'); 13 Uri libraryRoot = script.resolve('../../../sdk/');
15 Uri packageRoot = script.resolve('./packages/'); 14 Uri packageRoot = script.resolve('./packages/');
16 15
17 MemorySourceFileProvider.MEMORY_SOURCE_FILES = MEMORY_SOURCE_FILES; 16 MemorySourceFileProvider.MEMORY_SOURCE_FILES = MEMORY_SOURCE_FILES;
18 var provider = new MemorySourceFileProvider(); 17 var provider = new MemorySourceFileProvider();
19 int warningCount = 0; 18 int warningCount = 0;
20 int errorCount = 0; 19 int errorCount = 0;
21 void diagnosticHandler(Uri uri, int begin, int end, 20 void diagnosticHandler(Uri uri, int begin, int end,
22 String message, Diagnostic kind) { 21 String message, Diagnostic kind) {
23 if (kind == Diagnostic.VERBOSE_INFO) { 22 if (kind == Diagnostic.VERBOSE_INFO) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 56 }
58 57
59 for ((){}() in []) { 58 for ((){}() in []) {
60 } 59 }
61 60
62 for (1 in []) { 61 for (1 in []) {
63 } 62 }
64 } 63 }
65 """ 64 """
66 }; 65 };
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/analyze_api_test.dart ('k') | tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698