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

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

Issue 63173009: Ensure we run the observable transform on PolymerElement (fixes issue 14942) (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/transform_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/transformer.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
11 main() { 11 main() {
12 useCompactVMConfiguration(); 12 useCompactVMConfiguration();
13 13
14 group('replaces Observable for ChangeNotifier', () { 14 group('replaces Observable for ChangeNotifier', () {
15 _testClause('extends Observable', 'extends ChangeNotifier'); 15 _testClause('extends Observable', 'extends ChangeNotifier');
16 _testClause('extends Base with Observable', 16 _testClause('extends Base with Observable',
17 'extends Base with ChangeNotifier'); 17 'extends Base with ChangeNotifier');
(...skipping 189 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/transform_test.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698