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

Side by Side Diff: pkg/polymer/test/mirror_loader_test.dart

Issue 232373002: pkg/polymer[_expressions] unittest fixes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: oops Created 6 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
« no previous file with comments | « pkg/polymer/test/mirror_loader_4.dart ('k') | pkg/polymer/test/nested_binding_test.dart » ('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 'dart:html';
7 6
8 import 'dart:mirrors'; 7 import 'dart:mirrors';
9 8
10 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
11 import 'package:unittest/html_config.dart'; 10 import 'package:unittest/html_config.dart';
12 import 'package:path/path.dart' show url;
13 11
14 import 'package:polymer/src/mirror_loader.dart'; 12 import 'package:polymer/src/mirror_loader.dart';
15 import 'mirror_loader_1.dart' as m1; 13 import 'mirror_loader_1.dart' as m1;
16 import 'mirror_loader_2.dart' as m2; 14 import 'mirror_loader_2.dart' as m2;
17 import 'mirror_loader_3.dart' as m3; 15 import 'mirror_loader_3.dart' as m3;
18 import 'mirror_loader_4.dart' as m4; 16 import 'mirror_loader_4.dart' as m4;
19 17
20 main() { 18 main() {
21 useHtmlConfiguration(); 19 useHtmlConfiguration();
22 20
(...skipping 19 matching lines...) Expand all
42 expect(e is UnsupportedError, isTrue); 40 expect(e is UnsupportedError, isTrue);
43 expect('$e', contains( 41 expect('$e', contains(
44 'Custom element classes cannot have type-parameters: XB')); 42 'Custom element classes cannot have type-parameters: XB'));
45 }); 43 });
46 }); 44 });
47 } 45 }
48 46
49 final mirrors = currentMirrorSystem(); 47 final mirrors = currentMirrorSystem();
50 _discover(Symbol name) => 48 _discover(Symbol name) =>
51 discoverInitializers([mirrors.findLibrary(name).uri.toString()]); 49 discoverInitializers([mirrors.findLibrary(name).uri.toString()]);
OLDNEW
« no previous file with comments | « pkg/polymer/test/mirror_loader_4.dart ('k') | pkg/polymer/test/nested_binding_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698