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

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

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
Index: tests/lib/mirrors/mirrors_test.dart
===================================================================
--- tests/lib/mirrors/mirrors_test.dart (revision 14313)
+++ tests/lib/mirrors/mirrors_test.dart (working copy)
@@ -5,9 +5,9 @@
// TODO(rmacnak): Move the existing mirror tests here (a place for
// cross-implementation tests).
-#library("MirrorsTest.dart");
-#import("dart:mirrors");
-#import("../../../pkg/unittest/unittest.dart");
+library MirrorsTest;
+import "dart:mirrors";
+import "../../../pkg/unittest/lib/unittest.dart";
var topLevelField;
@@ -21,7 +21,7 @@
testFieldAccess(mirrors) {
var instance = new Class();
- var libMirror = mirrors.libraries["MirrorsTest.dart"];
+ var libMirror = mirrors.libraries["MirrorsTest"];
var classMirror = libMirror.classes["Class"];
var instMirror = reflect(instance);
@@ -64,7 +64,7 @@
}
testInvokeConstructor(mirrors) {
- var libMirror = mirrors.libraries["MirrorsTest.dart"];
+ var libMirror = mirrors.libraries["MirrorsTest"];
var classMirror = libMirror.classes["Class"];
var future = classMirror.newInstance('', []);

Powered by Google App Engine
This is Rietveld 408576698