Fixes #523. Move tests that use mirrors to API tests.
diff --git a/LibTest/mirrors/before_export_lib1.dart b/LibTest/mirrors/before_export_lib1.dart
new file mode 100644
index 0000000..1a6dd3c
--- /dev/null
+++ b/LibTest/mirrors/before_export_lib1.dart
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) 2015, 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.
+ */
+
+library before_export_lib1;
+
+@A() export 'before_export_lib2.dart';
+
+class A {
+  const A();
+}
diff --git a/LibTest/mirrors/before_export_lib2.dart b/LibTest/mirrors/before_export_lib2.dart
new file mode 100644
index 0000000..eac5b07
--- /dev/null
+++ b/LibTest/mirrors/before_export_lib2.dart
@@ -0,0 +1,10 @@
+/*
+ * Copyright (c) 2015, 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.
+ */
+
+library before_export_lib2;
+
+class B {
+}
diff --git a/LibTest/mirrors/before_export_t01.dart b/LibTest/mirrors/before_export_t01.dart
new file mode 100644
index 0000000..e935e61
--- /dev/null
+++ b/LibTest/mirrors/before_export_t01.dart
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2015, 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.
+ */
+/**
+ * @assertion Metadata can appear before  ...  export ...
+ * @description Check that metadata is allowed before export directive
+ * @author a.semenov@unipro.ru
+ */
+import 'dart:mirrors';
+import '../../Utils/expect.dart';
+
+import 'before_export_lib1.dart';
+
+main() {
+  Symbol libraryName = MirrorSystem.getSymbol('before_export_lib1');
+  LibraryMirror libraryMirror = currentMirrorSystem().findLibrary(libraryName);
+  LibraryDependencyMirror exportMirror = libraryMirror.libraryDependencies
+                                               .firstWhere( (e) => e.isExport );
+  Expect.equals('before_export_lib1.A',
+      MirrorSystem.getName(exportMirror.metadata[0].type.qualifiedName));
+}
diff --git a/LibTest/mirrors/before_part_directive_t01.dart b/LibTest/mirrors/before_part_directive_t01.dart
new file mode 100644
index 0000000..8323fb6
--- /dev/null
+++ b/LibTest/mirrors/before_part_directive_t01.dart
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) 2015, 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.
+ */
+/**
+ * @assertion Metadata can appear before  ...   part directive ...
+ * @description Check that metadata is allowed before part directive
+ * @author a.semenov@unipro.ru
+ */
+import 'before_part_directive_lib1.dart';
+
+main() {
+  // Unfortunately, there is no way to obtain part directive metadata.
+  // Just make sure the syntax parser allows metadata before part directive
+}