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

Side by Side Diff: pkg/observe/test/transform_test.dart

Issue 51483002: fix PathObserver to avoid try+catch (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « pkg/observe/test/path_observer_test.dart ('k') | pkg/pkg.status » ('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) 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 'dart:async'; 5 import 'dart:async';
6 import 'package:barback/barback.dart'; 6 import 'package:barback/barback.dart';
7 import 'package:observe/transform.dart'; 7 import 'package:observe/transform.dart';
8 import 'package:unittest/compact_vm_config.dart'; 8 import 'package:unittest/compact_vm_config.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 155
156 void addOutput(Asset output) { 156 void addOutput(Asset output) {
157 outs.add(output); 157 outs.add(output);
158 } 158 }
159 159
160 readInput(id) => throw new UnimplementedError(); 160 readInput(id) => throw new UnimplementedError();
161 readInputAsString(id, {encoding}) => throw new UnimplementedError(); 161 readInputAsString(id, {encoding}) => throw new UnimplementedError();
162 162
163 static void _mockLogFn(AssetId asset, LogLevel level, String message, 163 static void _mockLogFn(AssetId asset, LogLevel level, String message,
164 Span span) { 164 span) {
165 // Do nothing. 165 // Do nothing.
166 } 166 }
167 } 167 }
168 168
169 String _sampleObservable(String annotation) => ''' 169 String _sampleObservable(String annotation) => '''
170 library A_foo; 170 library A_foo;
171 import 'package:observe/observe.dart'; 171 import 'package:observe/observe.dart';
172 172
173 class A extends Observable { 173 class A extends Observable {
174 @$annotation int foo; 174 @$annotation int foo;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 " Foo\n" 207 " Foo\n"
208 " get foo => __\$foo; Foo __\$foo/*D*/= 1; " 208 " get foo => __\$foo; Foo __\$foo/*D*/= 1; "
209 "${_makeSetter('Foo', 'foo')} " 209 "${_makeSetter('Foo', 'foo')} "
210 "@reflectable @$meta @otherMetadata Foo get bar => __\$bar; " 210 "@reflectable @$meta @otherMetadata Foo get bar => __\$bar; "
211 "Foo __\$bar =/*A*/2/*B*/; ${_makeSetter('Foo', 'bar')}\n" 211 "Foo __\$bar =/*A*/2/*B*/; ${_makeSetter('Foo', 'bar')}\n"
212 " @reflectable @$meta @otherMetadata Foo get quux => __\$quux; " 212 " @reflectable @$meta @otherMetadata Foo get quux => __\$quux; "
213 "Foo __\$quux/*C*/; ${_makeSetter('Foo', 'quux')}\n\n" 213 "Foo __\$quux/*C*/; ${_makeSetter('Foo', 'quux')}\n\n"
214 " @reflectable @$meta dynamic get baz => __\$baz; dynamic __\$baz; " 214 " @reflectable @$meta dynamic get baz => __\$baz; dynamic __\$baz; "
215 "${_makeSetter('dynamic', 'baz')}\n" 215 "${_makeSetter('dynamic', 'baz')}\n"
216 "}\n"; 216 "}\n";
OLDNEW
« no previous file with comments | « pkg/observe/test/path_observer_test.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698