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

Unified Diff: test/iron_form_test.dart

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 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/iron_collapse_test.dart ('k') | test/iron_icon_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/iron_form_test.dart
diff --git a/test/iron_form_test.dart b/test/iron_form_test.dart
index 098bf1a90335be0cf505875d5691b69955cda5ff..a8b3e9e072430ed33b763cbc951150b919a76b68 100644
--- a/test/iron_form_test.dart
+++ b/test/iron_form_test.dart
@@ -187,7 +187,7 @@ main() async {
form.on['iron-form-response'].take(1).listen((event) {
expect(submitted, isTrue);
- var response = new JsObject.fromBrowserObject(event)['detail'];
+ var response = convertToDart(event).detail.response;
expect(response, isNotNull);
expect(response is JsObject, isTrue);
expect(response['success'], isTrue);
@@ -209,7 +209,7 @@ main() async {
form.on['iron-form-response'].take(1).listen((event) {
expect(submitted, isTrue);
- var response = event.detail;
+ var response = convertToDart(event).detail.response;
expect(response, isNotNull);
expect(response is JsObject, isTrue);
expect(response['success'], isTrue);
« no previous file with comments | « test/iron_collapse_test.dart ('k') | test/iron_icon_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698