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

Side by Side Diff: packages/smoke/test/codegen/generator_test.dart

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library smoke.test.codegen.generator_test; 5 library smoke.test.codegen.generator_test;
6 6
7 import 'package:smoke/codegen/generator.dart'; 7 import 'package:smoke/codegen/generator.dart';
8 import 'package:unittest/unittest.dart'; 8 import 'package:test/test.dart';
9 9
10 import 'common.dart' show checkResults; 10 import 'common.dart' show checkResults;
11 11
12 main() { 12 main() {
13 test('getters', () { 13 test('getters', () {
14 var generator = new SmokeCodeGenerator(); 14 var generator = new SmokeCodeGenerator();
15 generator.addGetter('i'); 15 generator.addGetter('i');
16 checkResults(generator, 16 checkResults(generator,
17 initCall: 'useGeneratedCode(new StaticConfiguration(\n' 17 initCall: 'useGeneratedCode(new StaticConfiguration(\n'
18 ' checkedMode: false,\n' 18 ' checkedMode: false,\n'
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 ' smoke_0.A: {\n' 214 ' smoke_0.A: {\n'
215 ' #foo: const Declaration(#foo, int, isFinal: true),\n' 215 ' #foo: const Declaration(#foo, int, isFinal: true),\n'
216 ' },\n' 216 ' },\n'
217 ' },\n' 217 ' },\n'
218 ' names: {\n' 218 ' names: {\n'
219 ' #c: r\'c\',\n' 219 ' #c: r\'c\',\n'
220 ' #d: r\'d\',\n' 220 ' #d: r\'d\',\n'
221 ' }));\n'); 221 ' }));\n');
222 }); 222 });
223 } 223 }
OLDNEW
« no previous file with comments | « packages/smoke/test/codegen/end_to_end_test.dart ('k') | packages/smoke/test/codegen/recorder_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698