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

Unified Diff: test/src/common/polymer_descriptor_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 | « test/src/common/behavior_test.dart ('k') | test/src/common/polymer_mixin_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/src/common/polymer_descriptor_test.dart
diff --git a/test/src/common/polymer_descriptor_test.dart b/test/src/common/polymer_descriptor_test.dart
index 61ba26be20f7ba0279e815ff98e1fdf5def74aeb..ae5167e23d21d5eec017efcc099593f6a342ca0f 100644
--- a/test/src/common/polymer_descriptor_test.dart
+++ b/test/src/common/polymer_descriptor_test.dart
@@ -68,12 +68,14 @@ main() async {
expect(descriptor['behaviorTwoExposedMethod'] is JsFunction, isTrue);
expect(descriptor['behaviors'], isNotNull);
- expect(descriptor['behaviors'].length, 4);
- expect(descriptor['behaviors'][0], context['Foo']['JsBehaviorOne']);
- expect(descriptor['behaviors'][1], behavior.getBehavior(DartBehaviorOne));
- expect(descriptor['behaviors'][2], context['Foo']['JsBehaviorTwo']);
- expect(descriptor['behaviors'][3], behavior.getBehavior(DartBehaviorTwo));
- expect(descriptor['behaviors'][1], isNot(descriptor['behaviors'][3]));
+ expect(descriptor['behaviors'].length, 5);
+ expect(descriptor['behaviors'][0],
+ context['Polymer']['Dart']['InteropBehavior']);
+ expect(descriptor['behaviors'][1], context['Foo']['JsBehaviorOne']);
+ expect(descriptor['behaviors'][2], behavior.getBehavior(DartBehaviorOne));
+ expect(descriptor['behaviors'][3], context['Foo']['JsBehaviorTwo']);
+ expect(descriptor['behaviors'][4], behavior.getBehavior(DartBehaviorTwo));
+ expect(descriptor['behaviors'][2], isNot(descriptor['behaviors'][3]));
});
}
« no previous file with comments | « test/src/common/behavior_test.dart ('k') | test/src/common/polymer_mixin_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698