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

Unified Diff: tests/lib/mirrors/parameter_dart2js_test.dart

Issue 24008002: Merge tests for dart2js and VM using multi-tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib/mirrors/equality_test.dart ('k') | tests/lib/mirrors/parameter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/parameter_dart2js_test.dart
diff --git a/tests/lib/mirrors/parameter_dart2js_test.dart b/tests/lib/mirrors/parameter_dart2js_test.dart
deleted file mode 100644
index aa5cdeea525215e3e88fe89d6a1c28597df13410..0000000000000000000000000000000000000000
--- a/tests/lib/mirrors/parameter_dart2js_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.
-
-/// Test of [ParameterMirror].
-library test.parameter_test;
-
-@MirrorsUsed(targets: 'test.parameter_test', override: '*')
-import 'dart:mirrors';
-
-import 'stringify.dart';
-
-class B {
- B();
- B.foo(int x);
- B.bar(int z, x);
-}
-
-main() {
- var constructors = reflectClass(B).constructors;
-
- expect('{B: Method(s(B) in s(B), constructor), '
- 'B.bar: Method(s(B.bar) in s(B), constructor), '
- 'B.foo: Method(s(B.foo) in s(B), constructor)}',
- constructors);
-
- var unnamedConstructor = constructors[new Symbol('B')];
-
- expect('[]', unnamedConstructor.parameters);
- expect('Class(s(B) in s(test.parameter_test), top-level)',
- unnamedConstructor.returnType);
-
- var fooConstructor = constructors[new Symbol('B.foo')];
- expect('[Parameter(s(x) in s(B.foo),'
- ' type = Class(s(int) in s(dart.core), top-level))]',
- fooConstructor.parameters);
- expect('Class(s(B) in s(test.parameter_test), top-level)',
- fooConstructor.returnType);
-
- var barConstructor = constructors[new Symbol('B.bar')];
- expect('[Parameter(s(z) in s(B.bar),'
- ' type = Class(s(int) in s(dart.core), top-level)), '
- 'Parameter(s(x) in s(B.bar),'
- ' type = Type(s(dynamic), top-level))]',
- barConstructor.parameters);
- expect('Class(s(B) in s(test.parameter_test), top-level)',
- barConstructor.returnType);
-
- print(constructors);
-}
« no previous file with comments | « tests/lib/mirrors/equality_test.dart ('k') | tests/lib/mirrors/parameter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698