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

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: update comments 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
« no previous file with comments | « lib/src/js/polymer_bind_dart.html ('k') | test/src/common/behavior_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b730ba35b5249d597845f5d85197c05bdb5acc27..02a140160e1a03c57db0ae36d33fdb1c2a593118 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);
« no previous file with comments | « lib/src/js/polymer_bind_dart.html ('k') | test/src/common/behavior_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698