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

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

Issue 15643004: Fix breakages from r23266 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « no previous file | utils/apidoc/html_diff.dart » ('j') | utils/apidoc/html_diff.dart » ('J')
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:async'; 6 import 'dart:async';
7 import 'dart:io'; 7 import 'dart:io';
8 import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart'; 8 import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart';
9 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart' ; 9 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart' ;
10 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirro r.dart'; 10 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirro r.dart';
11 import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider. dart'; 11 import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider. dart';
12 import 'mock_compiler.dart'; 12 import 'mock_compiler.dart';
13 13
14 const String SOURCE = 'source'; 14 const String SOURCE = 'source';
15 const Uri SOURCE_URI = const Uri.fromComponents(scheme: SOURCE, path: SOURCE); 15 Uri SOURCE_URI = new Uri(scheme: SOURCE, path: SOURCE);
floitsch 2013/05/28 14:50:40 mark it as final.
Søren Gjesse 2013/05/28 15:15:55 Done.
16 16
17 MirrorSystem createMirrorSystem(String source) { 17 MirrorSystem createMirrorSystem(String source) {
18 MockCompiler compiler = new MockCompiler( 18 MockCompiler compiler = new MockCompiler(
19 analyzeOnly: true, 19 analyzeOnly: true,
20 analyzeAll: true, 20 analyzeAll: true,
21 preserveComments: true); 21 preserveComments: true);
22 compiler.registerSource(SOURCE_URI, source); 22 compiler.registerSource(SOURCE_URI, source);
23 compiler.librariesToAnalyzeWhenRun = <Uri>[SOURCE_URI]; 23 compiler.librariesToAnalyzeWhenRun = <Uri>[SOURCE_URI];
24 compiler.runCompiler(null); 24 compiler.runCompiler(null);
25 return new Dart2JsMirrorSystem(compiler); 25 return new Dart2JsMirrorSystem(compiler);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 testDeclarationComment('final int field = 0;', ['field']); 76 testDeclarationComment('final int field = 0;', ['field']);
77 testDeclarationComment('final field1 = 0, field2 = 0;', ['field1', 'field2']); 77 testDeclarationComment('final field1 = 0, field2 = 0;', ['field1', 'field2']);
78 testDeclarationComment('final int field1 = 0, field2 = 0;', 78 testDeclarationComment('final int field1 = 0, field2 = 0;',
79 ['field1', 'field2']); 79 ['field1', 'field2']);
80 testDeclarationComment('const field = 0;', ['field']); 80 testDeclarationComment('const field = 0;', ['field']);
81 testDeclarationComment('const int field = 0;', ['field']); 81 testDeclarationComment('const int field = 0;', ['field']);
82 testDeclarationComment('const field1 = 0, field2 = 0;', ['field1', 'field2']); 82 testDeclarationComment('const field1 = 0, field2 = 0;', ['field1', 'field2']);
83 testDeclarationComment('const int field1 = 0, field2 = 0;', 83 testDeclarationComment('const int field1 = 0, field2 = 0;',
84 ['field1', 'field2']); 84 ['field1', 'field2']);
85 } 85 }
OLDNEW
« no previous file with comments | « no previous file | utils/apidoc/html_diff.dart » ('j') | utils/apidoc/html_diff.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698