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

Unified Diff: pkg/polymer/test/mirror_loader_test.dart

Issue 794473002: Delete polymer from the Dart repo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/mirror_loader_test.dart
diff --git a/pkg/polymer/test/mirror_loader_test.dart b/pkg/polymer/test/mirror_loader_test.dart
deleted file mode 100644
index b8de095b97acc40463f81cf7f160e761656e3d34..0000000000000000000000000000000000000000
--- a/pkg/polymer/test/mirror_loader_test.dart
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-import 'dart:async';
-
-import 'dart:mirrors';
-
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
-
-import 'package:polymer/src/mirror_loader.dart';
-/// prevent unused import warnings: [m1.XA] [m2.XA] [m3.XB] [m4.XA].
-import 'mirror_loader_1.dart' as m1;
-import 'mirror_loader_2.dart' as m2;
-import 'mirror_loader_3.dart' as m3;
-import 'mirror_loader_4.dart' as m4;
-
-main() {
- useHtmlConfiguration();
-
- test('registered correctly', () {
- expect(_discover(#mirror_loader_test1).length, 1);
- expect(_discover(#mirror_loader_test2).length, 1);
- });
-
- test('parameterized custom tags are not registered', () {
- runZoned(() {
- expect(_discover(#mirror_loader_test3).length, 0);
- }, onError: (e) {
- expect(e is UnsupportedError, isTrue);
- expect('$e', contains(
- 'Custom element classes cannot have type-parameters: XB'));
- });
- });
-
- test('registers correct types even when errors are found', () {
- runZoned(() {
- expect(_discover(#mirror_loader_test4).length, 1);
- }, onError: (e) {
- expect(e is UnsupportedError, isTrue);
- expect('$e', contains(
- 'Custom element classes cannot have type-parameters: XB'));
- });
- });
-}
-
-final mirrors = currentMirrorSystem();
-_discover(Symbol name) =>
- discoverInitializers([mirrors.findLibrary(name).uri.toString()]);
« 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