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

Unified Diff: test/src/common/behavior_composition_test.dart

Issue 1351693003: Update to use one less proxy per element (Closed) Base URL: git@github.com:dart-lang/polymer-dart.git@behaviors
Patch Set: redo! Created 5 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: test/src/common/behavior_composition_test.dart
diff --git a/test/src/common/behavior_composition_test.dart b/test/src/common/behavior_composition_test.dart
index 06534e1054a9e9c271a7e44cfabf7798d24fad66..f90956cf3bfacbf3dcaacdf65fcdaba7d5cfdc4c 100644
--- a/test/src/common/behavior_composition_test.dart
+++ b/test/src/common/behavior_composition_test.dart
@@ -19,11 +19,12 @@ main() async {
test('Correct usage of mixins works', () {
var descriptor =
createPolymerDescriptor(Good, const PolymerRegister('good-element'));
- // Should only get [BehaviorFour] in the top level behaviors object.
- expect(descriptor['behaviors'].length, 1);
+ // Should only get [BehaviorFour] in the top level behaviors object, in
+ // addition to Polymer.Dart.Behavior.
+ expect(descriptor['behaviors'].length, 2);
var behaviorFour = behavior.getBehavior(BehaviorFour);
- expect(descriptor['behaviors'][0], behaviorFour);
+ expect(descriptor['behaviors'][1], behaviorFour);
expect(behaviorFour, new isInstanceOf<JsArray>());
expect(behaviorFour.length, 2);

Powered by Google App Engine
This is Rietveld 408576698