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

Unified Diff: pkg/front_end/test/src/incremental/format_test.dart

Issue 2940673002: Store also 'hasMixinApplication' flag with UnlinkedUnit. (Closed)
Patch Set: Created 3 years, 6 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 | « pkg/front_end/lib/src/incremental/format.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/src/incremental/format_test.dart
diff --git a/pkg/front_end/test/src/incremental/format_test.dart b/pkg/front_end/test/src/incremental/format_test.dart
index b3c2a900f1dbca7bb9e16674b972fd05de48b651..38ef22b6f87264c1af446e68cd4694a7f5671fad 100644
--- a/pkg/front_end/test/src/incremental/format_test.dart
+++ b/pkg/front_end/test/src/incremental/format_test.dart
@@ -86,21 +86,37 @@ class FormatTest {
], parts: [
new UnlinkedNamespaceDirectiveBuilder(uri: 'p1.dart'),
new UnlinkedNamespaceDirectiveBuilder(uri: 'p2.dart'),
- ]).finish(fbBuilder);
+ ], hasMixinApplication: true)
+ .finish(fbBuilder);
bytes = fbBuilder.finish(offset);
}
- var directive = new UnlinkedUnit(bytes);
- expect(directive.apiSignature, [0, 1, 2, 3, 4]);
+ var unit = new UnlinkedUnit(bytes);
+ expect(unit.apiSignature, [0, 1, 2, 3, 4]);
- expect(directive.imports, hasLength(1));
- expect(directive.imports[0].uri, 'a.dart');
+ expect(unit.imports, hasLength(1));
+ expect(unit.imports[0].uri, 'a.dart');
- expect(directive.exports, hasLength(1));
- expect(directive.exports[0].uri, 'b.dart');
+ expect(unit.exports, hasLength(1));
+ expect(unit.exports[0].uri, 'b.dart');
- expect(directive.parts, hasLength(2));
- expect(directive.parts[0].uri, 'p1.dart');
- expect(directive.parts[1].uri, 'p2.dart');
+ expect(unit.parts, hasLength(2));
+ expect(unit.parts[0].uri, 'p1.dart');
+ expect(unit.parts[1].uri, 'p2.dart');
+
+ expect(unit.hasMixinApplication, isTrue);
+ }
+
+ void test_UnlinkedUnit_hasMixinApplication_false() {
+ Uint8List bytes;
+ {
+ fb.Builder fbBuilder = new fb.Builder();
+ fb.Offset offset =
+ new UnlinkedUnitBuilder(hasMixinApplication: false).finish(fbBuilder);
+ bytes = fbBuilder.finish(offset);
+ }
+
+ var unit = new UnlinkedUnit(bytes);
+ expect(unit.hasMixinApplication, isFalse);
}
}
« no previous file with comments | « pkg/front_end/lib/src/incremental/format.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698