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

Unified Diff: packages/smoke/test/static_in_pieces_test.dart

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 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 | « packages/smoke/test/mirrors_used_test.dart ('k') | packages/smoke/test/static_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/smoke/test/static_in_pieces_test.dart
diff --git a/packages/smoke/test/static_in_pieces_test.dart b/packages/smoke/test/static_in_pieces_test.dart
index a18fbd20120df45db081d51fe0e114f42d6d3594..b0682d7fd387826f75cd84b38438406f146c1988 100644
--- a/packages/smoke/test/static_in_pieces_test.dart
+++ b/packages/smoke/test/static_in_pieces_test.dart
@@ -6,7 +6,7 @@
/// deferred imports.
library smoke.test.static_in_pieces_test;
-import 'package:unittest/unittest.dart';
+import 'package:test/test.dart';
import 'package:smoke/smoke.dart' show Declaration, PROPERTY, METHOD;
import 'package:smoke/static.dart' show useGeneratedCode, StaticConfiguration;
import 'piece1.dart' as p1;
@@ -97,15 +97,18 @@ final configuration = new StaticConfiguration(
main() {
useGeneratedCode(configuration);
- expect(configuration.getters[#j], isNull);
+ test('smoke', () async {
+ expect(configuration.getters[#j], isNull);
- configuration.addAll(p1.configuration);
- expect(configuration.getters[#j], isNotNull);
+ configuration.addAll(p1.configuration);
+ expect(configuration.getters[#j], isNotNull);
+
+ await p2.loadLibrary();
- p2.loadLibrary().then((_) {
expect(configuration.names[#i], isNull);
configuration.addAll(p2.configuration);
expect(configuration.names[#i], 'i');
- common.main();
});
+
+ common.main();
}
« no previous file with comments | « packages/smoke/test/mirrors_used_test.dart ('k') | packages/smoke/test/static_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698