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

Unified Diff: packages/initialize/test/initializer_type_filter_test.dart

Issue 3015713002: Roll to pickup pool changes
Patch Set: Created 3 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
Index: packages/initialize/test/initializer_type_filter_test.dart
diff --git a/packages/initialize/test/initializer_type_filter_test.dart b/packages/initialize/test/initializer_type_filter_test.dart
index 87e0196a8040082dd5a79d851f9ae461a3d10e50..1cd57d3c0e4d7b1ac2d1bc008e443f998bef641f 100644
--- a/packages/initialize/test/initializer_type_filter_test.dart
+++ b/packages/initialize/test/initializer_type_filter_test.dart
@@ -20,16 +20,23 @@ main() {
});
test('filter option limits which types of annotations will be ran', () {
- return run(typeFilter: const [_Adder]).then((_) {
- expect(total, 2);
- }).then((_) => run(typeFilter: const [_Subtractor])).then((_) {
- expect(total, 0);
- }).then((_) => run(typeFilter: const [_Adder])).then((_) {
- // Sanity check, future calls should be no-ops
- expect(total, 0);
- }).then((_) => run(typeFilter: const [_Subtractor])).then((_) {
- expect(total, 0);
- });
+ return run(typeFilter: const [_Adder])
+ .then((_) {
+ expect(total, 2);
+ })
+ .then((_) => run(typeFilter: const [_Subtractor]))
+ .then((_) {
+ expect(total, 0);
+ })
+ .then((_) => run(typeFilter: const [_Adder]))
+ .then((_) {
+ // Sanity check, future calls should be no-ops
+ expect(total, 0);
+ })
+ .then((_) => run(typeFilter: const [_Subtractor]))
+ .then((_) {
+ expect(total, 0);
+ });
});
}
@@ -48,6 +55,7 @@ class _Adder implements Initializer<dynamic> {
@override
initialize(_) => total++;
}
+
const adder = const _Adder();
// Initializer that decrements `total` by one.
@@ -57,4 +65,5 @@ class _Subtractor implements Initializer<dynamic> {
@override
initialize(_) => total--;
}
+
const subtractor = const _Subtractor();
« no previous file with comments | « packages/initialize/test/initializer_super_test.dart ('k') | packages/initialize/test/transformer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698