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

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

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

Powered by Google App Engine
This is Rietveld 408576698